Update LSP's keybindings

This commit is contained in:
Steins7 2023-04-21 10:02:22 +02:00
parent 025676576f
commit aeaf5800ef

View File

@ -23,7 +23,9 @@ local lsp_on_attach = function(_, bufnr)
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame') nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction') 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.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 -- See `:help K` for why this keymap
nmap('K', vim.lsp.buf.hover, 'Hover Documentation') nmap('K', vim.lsp.buf.hover, 'Hover Documentation')