From fbacca3f2869b923c3ed991fe93776d6b36c03be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Sat, 4 Jan 2025 17:41:19 +0200 Subject: [PATCH] Finalize NeoVim keybinds for now --- development.nix | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/development.nix b/development.nix index 11ef252..188a6e1 100644 --- a/development.nix +++ b/development.nix @@ -86,7 +86,6 @@ in } ]; - # TODO Check LSP code actions plugins = { fugitive.enable = true; gitsigns = { @@ -177,41 +176,53 @@ in inlayHints = true; keymaps = { diagnostic = { - "j" = { + "dj" = { action = "goto_next"; desc = "Next Diagnostic"; }; - "k" = { + "dk" = { action = "goto_prev"; desc = "Previous Diagnostic"; }; - "K" = { + "dh" = { action = "open_float"; desc = "Line Diagnostics"; }; }; lspBuf = { - gd = { + "gd" = { action = "definition"; desc = "Goto Definition"; }; - gr = { + "gr" = { action = "references"; desc = "Goto References"; }; - gD = { + "gD" = { action = "declaration"; desc = "Goto Declaration"; }; - gI = { + "gi" = { action = "implementation"; desc = "Goto Implementation"; }; - gT = { + "gt" = { action = "type_definition"; desc = "Type Definition"; }; - K = { + "s" = { + action = "workspace_symbol"; + desc = "Search Symbol"; + }; + "r" = { + action = "rename"; + desc = "Rename Symbol"; + }; + "a" = { + action = "code_action"; + desc = "Code Action"; + }; + H = { action = "hover"; desc = "Hover"; };