Update LSP's keybindings
This commit is contained in:
parent
025676576f
commit
aeaf5800ef
@ -23,7 +23,9 @@ local lsp_on_attach = function(_, bufnr)
|
||||
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
|
||||
nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
|
||||
nmap('gd', vim.lsp.buf.definition, '[G]oto [d]efinition')
|
||||
nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||
nmap('gr', vim.lsp.buf.references, '[G]oto [R]eferences')
|
||||
nmap('gc', vim.lsp.buf.outgoing_calls, '[G]oto Outgoing [C]alls')
|
||||
nmap('gt', vim.lsp.buf.type_definition, '[G]oto [T]ype definition')
|
||||
-- See `:help K` for why this keymap
|
||||
nmap('K', vim.lsp.buf.hover, 'Hover Documentation')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user