From 1aac68e35386378f811e6ecbf22871852118b73b Mon Sep 17 00:00:00 2001 From: Roy Dumblauskas Date: Mon, 1 Dec 2025 19:17:06 -0600 Subject: [PATCH] Revert "nixvim reformat" This reverts commit 7ed45e5508f3dd89e1bdf77edb25fa08e10b449c. --- home.nix | 155 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 80 insertions(+), 75 deletions(-) diff --git a/home.nix b/home.nix index d76e25e..7094111 100755 --- a/home.nix +++ b/home.nix @@ -268,35 +268,44 @@ expandtab = true; }; - keymaps = { - normal = { - "b" = { - action = "Neotree toggle"; - options.silent = true; - options.desc = "Toggle Neotree"; - }; - "h" = { - action = "h"; - options.silent = true; - options.desc = "Focus left"; - }; - "l" = { - action = "l"; - options.silent = true; - options.desc = "Focus right"; - }; - "j" = { - action = "j"; - options.silent = true; - options.desc = "Focus down"; - }; - "k" = { - action = "k"; - options.silent = true; - options.desc = "Focus up"; - }; - }; - }; + keymaps = [ + { + action = "Neotree toggle"; + key = "b"; + mode = [ "n" ]; + options.silent = true; + options.desc = "Toggle Neotree"; + } + { + action = "h"; + key = "h"; + mode = [ "n" ]; + options.silent = true; + options.desc = "Focus left"; + } + { + action = "l"; + key = "l"; + mode = [ "n" ]; + options.silent = true; + options.desc = "Focus right"; + } + { + action = "j"; + key = "j"; + mode = [ "n" ]; + options.silent = true; + options.desc = "Focus down"; + } + { + action = "k"; + key = "k"; + mode = [ "n" ]; + options.silent = true; + options.desc = "Focus up"; + } + + ]; plugins = { lualine.enable = true; @@ -340,56 +349,52 @@ keymaps = { silent = true; lspBuf = { - normal = { - gd = { - action = "definition"; - desc = "Goto Definition"; - }; - gr = { - action = "references"; - desc = "Goto References"; - }; - gD = { - action = "declaration"; - desc = "Goto Declaration"; - }; - gI = { - action = "implementation"; - desc = "Goto Implementation"; - }; - gT = { - action = "type_definition"; - desc = "Type Definition"; - }; - K = { - action = "hover"; - desc = "Hover"; - }; - "cw" = { - action = "workspace_symbol"; - desc = "Workspace Symbol"; - }; - "r" = { - action = "rename"; - desc = "Rename"; - }; + gd = { + action = "definition"; + desc = "Goto Definition"; + }; + gr = { + action = "references"; + desc = "Goto References"; + }; + gD = { + action = "declaration"; + desc = "Goto Declaration"; + }; + gI = { + action = "implementation"; + desc = "Goto Implementation"; + }; + gT = { + action = "type_definition"; + desc = "Type Definition"; + }; + K = { + action = "hover"; + desc = "Hover"; + }; + "cw" = { + action = "workspace_symbol"; + desc = "Workspace Symbol"; + }; + "r" = { + action = "rename"; + desc = "Rename"; }; }; diagnostic = { - normal = { - "cd" = { - action = "open_float"; - desc = "Line Diagnostics"; - }; - "]d" = { - action = "goto_next"; - desc = "Next Diagnostic"; - }; - "[d" = { - action = "goto_prev"; - desc = "Previous Diagnostic"; - }; + "cd" = { + action = "open_float"; + desc = "Line Diagnostics"; + }; + "]d" = { + action = "goto_next"; + desc = "Next Diagnostic"; + }; + "[d" = { + action = "goto_prev"; + desc = "Previous Diagnostic"; }; }; };