Skip to content

Commit 08e8a1a

Browse files
dam9000mynever
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 36647f4 commit 08e8a1a

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
@@ -311,17 +311,17 @@ require('lazy').setup({
311311
F11 = '<F11>',
312312
F12 = '<F12>',
313313
},
314+
},
314315

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

0 commit comments

Comments
 (0)