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"; };