update whichkey config
This commit is contained in:
parent
5fc28dadf5
commit
d2bc749833
|
@ -1,16 +1,21 @@
|
||||||
return { -- Useful plugin to show you pending keybinds.
|
return {
|
||||||
'folke/which-key.nvim',
|
'folke/which-key.nvim',
|
||||||
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
event = 'VimEnter',
|
||||||
config = function() -- This is the function that runs, AFTER loading
|
opts = {
|
||||||
require('which-key').setup()
|
preset = 'modern',
|
||||||
|
icons = {
|
||||||
-- Document existing key chains
|
keys = {
|
||||||
require('which-key').register {
|
BS = ' ',
|
||||||
['<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>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
|
keys = {
|
||||||
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
|
{ '<leader>c', group = '[C]ode' },
|
||||||
}
|
{ '<leader>d', group = '[D]ebugger' },
|
||||||
end,
|
{ '<leader>h', group = '[H]arpoon' },
|
||||||
|
{ '<leader>r', group = '[R]ename' },
|
||||||
|
{ '<leader>s', group = '[S]earch' },
|
||||||
|
{ '<leader>t', group = '[T]rouble' },
|
||||||
|
{ '<leader>w', group = '[W]orkspace' },
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue