change some lsp keymaps

This commit is contained in:
mjhika 2023-08-30 00:34:32 -04:00
parent 6995fa56ad
commit 3b4895a918
1 changed files with 2 additions and 2 deletions

View File

@ -375,8 +375,8 @@ local on_attach = function(_, bufnr)
vim.keymap.set('n', keys, func, { buffer = bufnr, desc = desc })
end
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>lrn', vim.lsp.buf.rename, '[R]e[n]ame')
nmap('<leader>lca', vim.lsp.buf.code_action, '[C]ode [A]ction')
nmap('gd', vim.lsp.buf.definition, '[G]oto [D]efinition')
nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')