nixvimConfigs/fiesta/setups/treesitter: update and add treesitter-refactor plugin config

This commit is contained in:
Gabriel Arazas 2024-01-30 18:05:54 +08:00
parent fc7eb5f7de
commit bdd0b82644
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -18,10 +18,12 @@ in
# want to. # want to.
nixGrammars = true; nixGrammars = true;
ensureInstalled = "all"; ensureInstalled = "all";
nixvimInjections = true;
# Enable all of its useful features. # Enable all of its useful features.
folding = true; folding = true;
indent = true; indent = true;
incrementalSelection.enable = true;
}; };
# Enable some more context for me. # Enable some more context for me.
@ -29,10 +31,19 @@ in
enable = true; enable = true;
lineNumbers = true; lineNumbers = true;
maxLines = 10; maxLines = 10;
mode = "topline"; mode = "cursor";
separator = "*"; 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. # Show me your moves.
plugins.treesitter-textobjects = { plugins.treesitter-textobjects = {
enable = true; enable = true;