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 Aug 26, 2024
1 parent 24d368f commit a229761
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 a229761

Please sign in to comment.