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:
Emmanuel BENOîT 2023-06-18 14:04:54 +02:00
parent b13a63ba83
commit be99bfda32
No known key found for this signature in database
GPG key ID: 2356DC6956CF54EF
9 changed files with 16 additions and 20 deletions

View file

@ -1,6 +1,8 @@
call dein#add('wsdjeg/dein-ui.vim', #{
\ lazy: 1,
\ on_map: #{
\ n: [ '<Leader>Pu' , '<Leader>Pi' ]
\ }
\ on_cmd: ['DeinUpdate'],
\ })
" Add key mappings for updates and installation
nnoremap <silent> <Leader>Pu :DeinUpdate<cr>
nnoremap <silent> <Leader>Pi :call CheckDeinInstall()<cr>