Handle keyboard shortcuts at plugin load time
Don't load plugins based on keyboard shortcuts, as this conflicts with vim-which-key. Instead, create shortcuts when plugins are declared, and load them when the commands they provide are used.
This commit is contained in:
parent
b13a63ba83
commit
be99bfda32
9 changed files with 16 additions and 20 deletions
plugins
|
@ -2,7 +2,6 @@
|
|||
nnoremap <silent> <Space> :<c-u>WhichKey '<Space>'<CR>
|
||||
let g:which_key_map = {}
|
||||
call which_key#register('<Space>', 'g:which_key_map')
|
||||
let g:which_key_fallback_to_native_key = 1
|
||||
|
||||
" Direct commands
|
||||
let g:which_key_map[' '] = [ 'call feedkeys(":nohlsearch\n")' , 'clear-search' ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue