Skip to content

Commit a029d0d

Browse files
dam9000kmha915
authored andcommitted
Fix the which-key spec issue caused by recent cleanup (nvim-lua#1113)
The recent cleanup accidentally broke the leader key specs because the spec block was in the wrong level of braces. That resulted in which-key no longer showing the description of the <leader> key chains such as [S]earch and others.
1 parent dc98f11 commit a029d0d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

init.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -314,17 +314,17 @@ require('lazy').setup({
314314
F11 = '<F11>',
315315
F12 = '<F12>',
316316
},
317+
},
317318

318-
-- Document existing key chains
319-
spec = {
320-
{ '<leader>c', group = '[C]ode', mode = { 'n', 'x' } },
321-
{ '<leader>d', group = '[D]ocument' },
322-
{ '<leader>r', group = '[R]ename' },
323-
{ '<leader>s', group = '[S]earch' },
324-
{ '<leader>w', group = '[W]orkspace' },
325-
{ '<leader>t', group = '[T]oggle' },
326-
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
327-
},
319+
-- Document existing key chains
320+
spec = {
321+
{ '<leader>c', group = '[C]ode', mode = { 'n', 'x' } },
322+
{ '<leader>d', group = '[D]ocument' },
323+
{ '<leader>r', group = '[R]ename' },
324+
{ '<leader>s', group = '[S]earch' },
325+
{ '<leader>w', group = '[W]orkspace' },
326+
{ '<leader>t', group = '[T]oggle' },
327+
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
328328
},
329329
},
330330
},

0 commit comments

Comments
 (0)