diff options
author | tcld <thEClaw.tcl@gmail.com> | 2023-09-24 10:24:33 +0200 |
---|---|---|
committer | tcld <thEClaw.tcl@gmail.com> | 2023-09-24 10:24:33 +0200 |
commit | 0340f772007d8a2fcca0cb172c0fc9b17ec33ea3 (patch) | |
tree | ba7005fa60cb497233e386f6df642d6cba383ff8 /init.lua | |
parent | d891f4ac5a80adef16024d524cec21b1643b6dd8 (diff) |
Add documentation for custom which-key groups
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -438,6 +438,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. -- |