mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
nixvimConfigs/fiesta/setups/treesitter: update and add treesitter-refactor plugin config
This commit is contained in:
parent
fc7eb5f7de
commit
bdd0b82644
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user