Skip to content

Commit

Permalink
Fix the which-key spec issue caused by recent cleanup (nvim-lua#1113)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dam9000 authored and umairraza96 committed Oct 5, 2024
1 parent e0bb810 commit 7bea20c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -310,17 +310,17 @@ require('lazy').setup({
F11 = '<F11>',
F12 = '<F12>',
},
},

-- Document existing key chains
spec = {
{ '<leader>c', group = '[C]ode', mode = { 'n', 'x' } },
{ '<leader>d', group = '[D]ocument' },
{ '<leader>r', group = '[R]ename' },
{ '<leader>s', group = '[S]earch' },
{ '<leader>w', group = '[W]orkspace' },
{ '<leader>t', group = '[T]oggle' },
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
},
-- Document existing key chains
spec = {
{ '<leader>c', group = '[C]ode', mode = { 'n', 'x' } },
{ '<leader>d', group = '[D]ocument' },
{ '<leader>r', group = '[R]ename' },
{ '<leader>s', group = '[S]earch' },
{ '<leader>w', group = '[W]orkspace' },
{ '<leader>t', group = '[T]oggle' },
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
},
},
},
Expand Down

0 comments on commit 7bea20c

Please sign in to comment.