mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 14:37:15 +01:00
update which-key config
This commit is contained in:
@@ -33,17 +33,16 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'folke/which-key.nvim',
|
'folke/which-key.nvim',
|
||||||
event = 'VimEnter',
|
event = 'VeryLazy',
|
||||||
config = function()
|
opts = {},
|
||||||
require('which-key').setup()
|
keys = {
|
||||||
|
{
|
||||||
require('which-key').register {
|
'<leader>?',
|
||||||
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
|
function()
|
||||||
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
|
require('which-key').show { global = false }
|
||||||
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
|
end,
|
||||||
['<leader>f'] = { name = '[F]ind', _ = 'which_key_ignore' },
|
desc = 'Buffer Local Keymaps (which-key)',
|
||||||
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
|
},
|
||||||
}
|
},
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user