Add LSP rename action

This commit is contained in:
Maciej Jur 2023-07-13 20:07:19 +02:00
parent bdf427fea7
commit d13a66bebf
No known key found for this signature in database
GPG key ID: ADA3BF323198C639

View file

@ -26,6 +26,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
callback = function() callback = function()
local buf_opts = { noremap = true, silent = true, buffer = true } local buf_opts = { noremap = true, silent = true, buffer = true }
vim.keymap.set('n', 'K', vim.lsp.buf.hover, buf_opts) vim.keymap.set('n', 'K', vim.lsp.buf.hover, buf_opts)
vim.keymap.set('n', "<space>rn", vim.lsp.buf.rename, buf_opts)
end end
}) })