Skip to content

Commit daf2dc3

Browse files
authored
Merge pull request #438 from tcld/which_key_documentation
Which key documentation and 2-3 changed keybindings
2 parents fca29aa + 0340f77 commit daf2dc3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

init.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,17 @@ local on_attach = function(_, bufnr)
436436
end, { desc = 'Format current buffer with LSP' })
437437
end
438438

439+
-- document existing key chains
440+
require('which-key').register({
441+
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
442+
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
443+
['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
444+
['<leader>h'] = { name = 'More git', _ = 'which_key_ignore' },
445+
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
446+
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
447+
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
448+
})
449+
439450
-- Enable the following language servers
440451
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
441452
--

0 commit comments

Comments
 (0)