From 3ad4ecfadfbdc3b2812104260f959507920d7289 Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Tue, 16 Jan 2024 16:37:02 +0000 Subject: [PATCH] wip --- .../terminal_environment/neovim/config-lua.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/home-manager/terminal_environment/neovim/config-lua.nix b/modules/home-manager/terminal_environment/neovim/config-lua.nix index 0036dca..c5895b5 100644 --- a/modules/home-manager/terminal_environment/neovim/config-lua.nix +++ b/modules/home-manager/terminal_environment/neovim/config-lua.nix @@ -16,16 +16,14 @@ vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts) - vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts) vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, opts) - vim.keymap.set('n', '', vim.lsp.buf.signature_help, opts) - vim.keymap.set('n', 'D', vim.lsp.buf.type_definition, opts) - vim.keymap.set('n', 'rn', vim.lsp.buf.rename, opts) - vim.keymap.set({ 'n', 'v' }, 'ca', vim.lsp.buf.code_action, opts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts) - vim.keymap.set('n', 'f', function() - vim.lsp.buf.format { async = true } - end, opts) + + vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts) + + vim.keymap.set('n', 'R', vim.lsp.buf.rename, opts) + + vim.api.nvim_create_user_command('CodeAction', vim.lsp.buf.code_action, opts) end, })