新增:whichkey插件
This commit is contained in:
20
layers/plug/whichkey.vim
Normal file
20
layers/plug/whichkey.vim
Normal file
@ -0,0 +1,20 @@
|
||||
vim9script
|
||||
|
||||
const g:which_key_map = {
|
||||
f: {
|
||||
name: 'File',
|
||||
o: ['Poplar', 'open']
|
||||
},
|
||||
v: {
|
||||
name: 'View',
|
||||
f: [":NERDTreeToggle", "nerdtree"]
|
||||
}
|
||||
}
|
||||
|
||||
tui#core#plug#Regist('liuchengxu/vim-which-key', {
|
||||
config: () => {
|
||||
which_key#register('<Space>', "g:which_key_map")
|
||||
nnoremap <silent> <Space> :WhichKey '<Space>'<CR>
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user