Skip to content

Commit a229761

Browse files
authored
Fix the which-key spec issue caused by recent cleanup (#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 24d368f commit a229761

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
@@ -310,17 +310,17 @@ require('lazy').setup({
310310
F11 = '<F11>',
311311
F12 = '<F12>',
312312
},
313+
},
313314

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

0 commit comments

Comments
 (0)