aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Patti <feoh@feoh.org>2023-09-29 15:29:20 -0400
committerGitHub <noreply@github.com>2023-09-29 15:29:20 -0400
commitdaf2dc38fc703f1226a18809187c6329292cf66c (patch)
tree695b1b90195391c21e18b007330934900d876a61
parentfca29aa6441a8f75b2d26e1015f5045911e13b92 (diff)
parent0340f772007d8a2fcca0cb172c0fc9b17ec33ea3 (diff)
Merge pull request #438 from tcld/which_key_documentation
Which key documentation and 2-3 changed keybindings
-rw-r--r--init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 3a00dea..5257113 100644
--- a/init.lua
+++ b/init.lua
@@ -436,6 +436,17 @@ local on_attach = function(_, bufnr)
end, { desc = 'Format current buffer with LSP' })
end
+-- document existing key chains
+require('which-key').register({
+ ['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
+ ['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
+ ['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
+ ['<leader>h'] = { name = 'More git', _ = 'which_key_ignore' },
+ ['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
+ ['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
+ ['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
+})
+
-- Enable the following language servers
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
--