diff --git a/plugins/treesitter.nix b/plugins/treesitter.nix index 5f5416e..c966506 100644 --- a/plugins/treesitter.nix +++ b/plugins/treesitter.nix @@ -21,8 +21,9 @@ settings.incremental_selection = { enable = true; keymaps = lib.mkForce { }; - highlight.enable = true; }; + + settings.highlight.enable = true; }; rootOpts = { diff --git a/plugins/which-key.nix b/plugins/which-key.nix index 6126a05..8215e8e 100644 --- a/plugins/which-key.nix +++ b/plugins/which-key.nix @@ -5,31 +5,48 @@ { opts = { enable = true; - icons.group = ""; - window.border = "single"; + # Disable which-key when in neo-tree or telescope - disable.filetypes = [ - "TelescopePrompt" - "neo-tree" - "neo-tree-popup" - ]; - # Customize section names (prefixed mappings) - registrations = { - "b".name = "${icons.Tab} Buffers"; - "bs".name = "${icons.Sort} Sort Buffers"; - "d".name = "${icons.Debugger} Debugger"; - "f".name = "${icons.Search} Find"; - "g".name = "${icons.Git} Git"; - "l".name = "${icons.ActiveLSP} Language Tools"; - "m".name = " Markdown"; - "s".name = "${icons.Session} Session"; - "t".name = "${icons.Terminal} Terminal"; - "u".name = "${icons.Window} UI/UX"; - ";".name = "Arrow buffers"; # This should move to arrow.nix when moving to which-key.add() - "m".name = "Arrow marks"; # This should move to arrow.nix when moving to which-key.add( + settings = { + icons.group = ""; + window.border = "single"; + + # Customize section names (prefixed mappings) + spec = [ + { __unkeyed = "b"; group = "Buffers"; icon = icons.Tab; } + { __unkeyed = "bs"; group = "Sort Buffers"; icon = icons.Sort;} + { __unkeyed = "d"; group = "Debugger"; icon = icons.Debugger;} + { __unkeyed = "f"; group = "Find"; icon = icons.Search;} + { __unkeyed = "g"; group = "Git"; icon = icons.Git;} + { __unkeyed = "l"; group = "Language Tools"; icon = icons.ActiveLSP;} + { __unkeyed = "m"; group = " Markdown"; } + { __unkeyed = "s"; group = "Session"; icon = icons.Session;} + { __unkeyed = "t"; group = "Terminal"; icon = icons.Terminal;} + { __unkeyed = "u"; group = "UI/UX"; icon = icons.Window;} + ]; + + disable.ft = [ + "TelescopePrompt" + "neo-tree" + "neo-tree-popup" + ]; }; + + + # registrations = { + # "b".name = "${icons.Tab} Buffers"; + # "bs".name = "${icons.Sort} Sort Buffers"; + # "d".name = "${icons.Debugger} Debugger"; + # "f".name = "${icons.Search} Find"; + # "g".name = "${icons.Git} Git"; + # "l".name = "${icons.ActiveLSP} Language Tools"; + # "m".name = " Markdown"; + # "s".name = "${icons.Session} Session"; + # "t".name = "${icons.Terminal} Terminal"; + # "u".name = "${icons.Window} UI/UX"; + # }; }; # Enable catppuccin colors