update key help config in nvim

This commit is contained in:
Alexander Navarro 2023-10-25 15:18:38 -03:00
parent b3413bffdb
commit 4ade38347c
5 changed files with 69 additions and 51 deletions

View file

@ -19,7 +19,7 @@ return {
},
-- Additional lua configuration, makes nvim stuff amazing!
{ "folke/neodev.nvim", opts = {} },
{ "folke/neodev.nvim", opts = {} },
},
config = function()
@ -40,8 +40,8 @@ return {
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>lr", vim.lsp.buf.rename, "[R]e[n]ame")
nmap("<leader>la", vim.lsp.buf.code_action, "[C]ode [A]ction")
nmap("gd", vim.lsp.buf.definition, "Go to definition")
nmap("gr", require("telescope.builtin").lsp_references, "[G]oto [R]eferences")