diff --git a/configs/nixvim/fiesta/modules/setups/treesitter.nix b/configs/nixvim/fiesta/modules/setups/treesitter.nix index 67b82eb2..e0632ad0 100644 --- a/configs/nixvim/fiesta/modules/setups/treesitter.nix +++ b/configs/nixvim/fiesta/modules/setups/treesitter.nix @@ -18,10 +18,12 @@ in # want to. nixGrammars = true; ensureInstalled = "all"; + nixvimInjections = true; # Enable all of its useful features. folding = true; indent = true; + incrementalSelection.enable = true; }; # Enable some more context for me. @@ -29,10 +31,19 @@ in enable = true; lineNumbers = true; maxLines = 10; - mode = "topline"; + mode = "cursor"; separator = "*"; }; + # Some niceties for refactoring. + plugins.treesitter-refactor = { + enable = true; + highlightCurrentScope.enable = true; + highlightDefinitions.enable = true; + navigation.enable = true; + smartRename.enable = true; + }; + # Show me your moves. plugins.treesitter-textobjects = { enable = true;