Add rename mapping on <F2>
This commit is contained in:
@@ -51,6 +51,7 @@ nmap("K", ":lua vim.lsp.buf.hover()<CR>")
|
|||||||
nmap("gd", ":lua vim.lsp.buf.definition()<CR>")
|
nmap("gd", ":lua vim.lsp.buf.definition()<CR>")
|
||||||
nmap("gr", ":lua vim.lsp.buf.references()<CR>")
|
nmap("gr", ":lua vim.lsp.buf.references()<CR>")
|
||||||
nmap("<leader>.", ":lua vim.lsp.buf.code_action()<CR>")
|
nmap("<leader>.", ":lua vim.lsp.buf.code_action()<CR>")
|
||||||
|
nmap("<F2>", ":lua vim.lsp.buf.rename()<CR>")
|
||||||
|
|
||||||
-- Tabs
|
-- Tabs
|
||||||
nmap("<leader>1", ":BufferGoto 1<CR>")
|
nmap("<leader>1", ":BufferGoto 1<CR>")
|
||||||
|
|||||||
Reference in New Issue
Block a user