Files
config.vim9/layers/plug/whichkey.vim
2025-12-18 11:40:30 +08:00

22 lines
410 B
VimL

vim9script
const g:which_key_map = {
f: {
name: 'File',
o: ['Poplar', 'open'],
x: ['q', 'quit']
},
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>
}
})