Skip to content

Commit c7ca046

Browse files
dam9000hchienjo
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 9db6fd8 commit c7ca046

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
@@ -308,17 +308,17 @@ require('lazy').setup({
308308
F11 = '<F11>',
309309
F12 = '<F12>',
310310
},
311+
},
311312

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

0 commit comments

Comments
 (0)