From 68c46a3c3d3420a4d2e0ed9d61b4769a6677c2fb Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 19 Nov 2024 15:35:46 -0800 Subject: [PATCH] feat: add lsp rename keymap --- lua/keymaps.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 072973a..f60fc60 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -27,3 +27,5 @@ vim.keymap.set("v", "", "gv") vim.keymap.set("v", "", "gv") vim.keymap.set("v", "g", "ggv") vim.keymap.set("v", "g", "ggv") + +vim.keymap.set("n", "cr", vim.lsp.buf.rename)