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

View file

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