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', '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,
}, },
} }