diff --git a/home.nix b/home.nix index 7094111..d76e25e 100755 --- a/home.nix +++ b/home.nix @@ -268,44 +268,35 @@ expandtab = true; }; - 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"; - } - - ]; + 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"; + }; + }; + }; plugins = { lualine.enable = true; @@ -349,52 +340,56 @@ keymaps = { silent = true; lspBuf = { - 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"; + 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"; + }; }; }; diagnostic = { - "cd" = { - action = "open_float"; - desc = "Line Diagnostics"; - }; - "]d" = { - action = "goto_next"; - desc = "Next Diagnostic"; - }; - "[d" = { - action = "goto_prev"; - desc = "Previous Diagnostic"; + normal = { + "cd" = { + action = "open_float"; + desc = "Line Diagnostics"; + }; + "]d" = { + action = "goto_next"; + desc = "Next Diagnostic"; + }; + "[d" = { + action = "goto_prev"; + desc = "Previous Diagnostic"; + }; }; }; };