diff options
author | Damjan 9000 <damjan.9000@gmail.com> | 2023-12-04 19:24:25 +0100 |
---|---|---|
committer | Damjan 9000 <damjan.9000@gmail.com> | 2023-12-04 19:24:25 +0100 |
commit | 5db82f334ff530ac53eeb2313c7425221065a8af (patch) | |
tree | 297c2fcbcd3d97d3064c7da5aaedfc7547cf1920 /lua/lsp-setup.lua | |
parent | a54945c75a1deab7e62d6213e803feaaa9802b9a (diff) | |
parent | 3824342d107850dfe5b179d0a39e0d8fcd54411d (diff) |
Merge 'upstream/master' keymaps for telescope and gitsigns
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. |