update which-key config

This commit is contained in:
Thomas Ruoff
2024-08-01 15:37:11 +02:00
parent 5e5d51074b
commit e75c0077b6

View File

@@ -33,17 +33,16 @@ return {
},
{
'folke/which-key.nvim',
event = 'VimEnter',
config = function()
require('which-key').setup()
require('which-key').register {
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
['<leader>f'] = { name = '[F]ind', _ = 'which_key_ignore' },
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
}
end,
event = 'VeryLazy',
opts = {},
keys = {
{
'<leader>?',
function()
require('which-key').show { global = false }
end,
desc = 'Buffer Local Keymaps (which-key)',
},
},
},
}