Files
config.vim9/layers/plug/whichkey.vim
2025-07-16 16:09:06 +08:00

21 lines
385 B
VimL

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>
}
})