From a18554e406637aaf7a4175cf24b8cd3e8fc9d241 Mon Sep 17 00:00:00 2001 From: pml68 Date: Sun, 28 Apr 2024 23:20:39 +0200 Subject: feat: change LSP code action from F4 to gc --- lua/pml68/remap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/pml68') diff --git a/lua/pml68/remap.lua b/lua/pml68/remap.lua index e08f780..ec35d5d 100644 --- a/lua/pml68/remap.lua +++ b/lua/pml68/remap.lua @@ -44,8 +44,8 @@ vim.api.nvim_create_autocmd('LspAttach', { vim.keymap.set('n', 'gr', 'lua vim.lsp.buf.references()', opts) vim.keymap.set('n', 'gs', 'lua vim.lsp.buf.signature_help()', opts) vim.keymap.set('n', '', 'lua vim.lsp.buf.rename()', opts) - vim.keymap.set('n', '', 'lua vim.lsp.buf.code_action()', opts) vim.keymap.set({ 'n', 'x' }, '', 'lua vim.lsp.buf.format({async = true})', opts) + vim.keymap.set('n', 'gc', 'lua vim.lsp.buf.code_action()', opts) end }) -- cgit v1.2.3