feat: better signature help, symbolmap mappings
This commit is contained in:
parent
26c0af4040
commit
a6630c6eb0
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ function KEYBINDS:set_global_keys(opts)
|
||||||
vim.keymap.set('n', '<M-t>', ':tabnew<CR>', opts) -- fallback for windows
|
vim.keymap.set('n', '<M-t>', ':tabnew<CR>', opts) -- fallback for windows
|
||||||
vim.keymap.set('n', '<C-t>', ':Neotree toggle<CR>', {noremap=true})
|
vim.keymap.set('n', '<C-t>', ':Neotree toggle<CR>', {noremap=true})
|
||||||
vim.keymap.set('n', '<C-S-t>', ':Neotree toggle source=symbolmap right<CR>', {noremap=true})
|
vim.keymap.set('n', '<C-S-t>', ':Neotree toggle source=symbolmap right<CR>', {noremap=true})
|
||||||
|
vim.keymap.set('n', '<M-S-t>', ':Neotree toggle source=symbolmap right<CR>', {noremap=true})
|
||||||
vim.keymap.set('n', '<C-PageUp>', ':Neotree toggle source=diagnostics bottom<CR>', opts)
|
vim.keymap.set('n', '<C-PageUp>', ':Neotree toggle source=diagnostics bottom<CR>', opts)
|
||||||
-- vim.keymap.set('n', '<C-h>', vim.cmd.UndotreeToggle, {noremap=true})
|
-- vim.keymap.set('n', '<C-h>', vim.cmd.UndotreeToggle, {noremap=true})
|
||||||
-- Esc goes back to normal mode in terminal
|
-- Esc goes back to normal mode in terminal
|
||||||
|
@ -84,6 +85,7 @@ function KEYBINDS:set_lsp_keys(opts)
|
||||||
vim.keymap.set('n', '<leader>r', vim.lsp.buf.references, opts)
|
vim.keymap.set('n', '<leader>r', vim.lsp.buf.references, opts)
|
||||||
vim.keymap.set('n', '<leader>h', vim.lsp.buf.hover, opts)
|
vim.keymap.set('n', '<leader>h', vim.lsp.buf.hover, opts)
|
||||||
vim.keymap.set('n', '<leader>f', vim.lsp.buf.signature_help, opts)
|
vim.keymap.set('n', '<leader>f', vim.lsp.buf.signature_help, opts)
|
||||||
|
vim.keymap.set('n', '<M-q>', vim.lsp.buf.signature_help, opts)
|
||||||
vim.keymap.set('n', '<C-Space>', vim.lsp.buf.hover, opts)
|
vim.keymap.set('n', '<C-Space>', vim.lsp.buf.hover, opts)
|
||||||
vim.keymap.set('n', '<C-x>', vim.lsp.buf.hover, opts)
|
vim.keymap.set('n', '<C-x>', vim.lsp.buf.hover, opts)
|
||||||
vim.keymap.set('n', '<leader>H', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) end)
|
vim.keymap.set('n', '<leader>H', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) end)
|
||||||
|
|
Loading…
Reference in a new issue