chore: add binding for default lsp behavior

This commit is contained in:
Dmitriy Pleshevskiy 2022-10-03 11:41:57 +03:00
parent 00f6a14810
commit e0b48909e2
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ vim.opt.signcolumn = "yes"
local on_attach = function(client, bufnr)
local bufopts = { noremap = true, silent = true, buffer = bufnr }
vim.keymap.set("n", "<localleader>n", "<Cmd>Lspsaga rename<CR>", bufopts)
vim.keymap.set('n', '<localleader>rn', vim.lsp.buf.rename, bufopts)
end
-------------------------------------------------------------------------------