which-key.vim 808 B

1234567891011121314151617181920212223
  1. " map leader to which_key
  2. " call which_key#register('<Space>', "g:which_key_map")
  3. nnoremap <silent> <leader> :silent WhichKey ' '<CR>
  4. " Not a fan of floating windows for this
  5. let g:which_key_use_floating_win = 0
  6. " highlight default link WhichKey Function
  7. " highlight default link WhichKeySeperator DiffAdded
  8. " highlight default link WhichKeyGroup Keyword
  9. " highlight default link WhichKeyDesc Identifier
  10. highlight default link WhichKey Operator
  11. highlight default link WhichKeySeperator DiffAdded
  12. highlight default link WhichKeyGroup Identifier
  13. highlight default link WhichKeyDesc Function
  14. " Hide status line
  15. autocmd! FileType which_key
  16. autocmd FileType which_key set laststatus=0 noshowmode noruler
  17. \| autocmd BufLeave <buffer> set laststatus=2 noshowmode ruler