Skip to content

Commit beeca25

Browse files
VlaDexaMatthew Lemon
authored andcommitted
which-key v3 update (nvim-lua#1022)
* which-key v3 update * remove unneeded brackets from which-key registration
1 parent 6df5117 commit beeca25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

init.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,16 +573,16 @@ require('lazy').setup({
573573
},
574574

575575
-- Document existing key chains
576-
spec = {
577-
{ '<leader>c', group = '[C]ode', mode = { 'n', 'x' } },
576+
require('which-key').add {
577+
{ '<leader>c', group = '[C]ode' },
578578
{ '<leader>d', group = '[D]ocument' },
579579
{ '<leader>r', group = '[R]ename' },
580580
{ '<leader>s', group = '[S]earch' },
581581
{ '<leader>w', group = '[W]orkspace' },
582582
{ '<leader>t', group = '[T]oggle' },
583583
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
584-
},
585-
},
584+
}
585+
end,
586586
},
587587

588588
-- NOTE: Plugins can specify dependencies.

0 commit comments

Comments
 (0)