chore: add binding for default lsp behavior
This commit is contained in:
parent
00f6a14810
commit
e0b48909e2
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
Reference in a new issue