From 1f48d47fbe3baafad2678837545c9ca73b5ac659 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 9 Jul 2024 23:18:39 +0200 Subject: [PATCH] change mappings for some code actions --- lua/custom/plugins/configs/lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins/configs/lsp.lua b/lua/custom/plugins/configs/lsp.lua index 14438b9..dc07126 100644 --- a/lua/custom/plugins/configs/lsp.lua +++ b/lua/custom/plugins/configs/lsp.lua @@ -53,11 +53,11 @@ vim.api.nvim_create_autocmd('LspAttach', { -- Rename the variable under your cursor. -- Most Language Servers support renaming across files, etc. - map('rn', vim.lsp.buf.rename, '[R]e[n]ame') + map('cr', vim.lsp.buf.rename, '[R]ename') -- Execute a code action, usually your cursor needs to be on top of an error -- or a suggestion from your LSP for this to activate. - map('ca', vim.lsp.buf.code_action, '[C]ode [A]ction') + map('ca', vim.lsp.buf.code_action, '[A]ction') -- Opens a popup that displays documentation about the word under your cursor -- See `:help K` for why this keymap.