diff options
Diffstat (limited to 'lua/lsp-setup.lua')
-rw-r--r-- | lua/lsp-setup.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/lsp-setup.lua b/lua/lsp-setup.lua index 53fef5a..2675a81 100644 --- a/lua/lsp-setup.lua +++ b/lua/lsp-setup.lua @@ -48,11 +48,18 @@ 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>h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' }, ['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' }, ['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' }, + ['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' }, ['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, } +-- register which-key VISUAL mode +-- required for visual <leader>hs (hunk stage) to work +require('which-key').register({ + ['<leader>'] = { name = 'VISUAL <leader>' }, + ['<leader>h'] = { 'Git [H]unk' }, +}, { mode = 'v' }) -- mason-lspconfig requires that these setup functions are called in this order -- before setting up the servers. |