treesitter configured

This commit is contained in:
Ellis Rahhal 2025-02-18 22:07:17 -08:00
parent 4ad80df1eb
commit 0791d5bd92
2 changed files with 38 additions and 1 deletions

View file

@ -21,6 +21,7 @@
./luasnip.nix
./nvim-tree.nix
./telescope.nix
./treesitter.nix
./vim-signify.nix
];
@ -66,7 +67,6 @@
sleuth.enable = true;
startify.enable = config.nixvim-config.enable-startify;
tmux-navigator.enable = true;
treesitter.enable = true;
treesitter-context.enable = true;
trouble.enable = true;
ts-autotag.enable = true;

37
plugins/treesitter.nix Normal file
View file

@ -0,0 +1,37 @@
{ ... }:
{
programs.nixvim = {
plugins.treesitter = {
enable = true;
settings = {
auto_install = true;
folding = true;
highlight = {
enable = true;
## Can slow down the editor
# additional_vim_regex_highlighting = true;
custom_captures = { };
disable = [
# "rust"
];
};
ignore_install = [
# "rust"
];
incremental_selection = {
enable = true;
keymaps = {
init_selection = false;
node_decremental = "grm";
node_incremental = "grn";
scope_incremental = "grc";
};
};
indent = {
enable = true;
};
};
};
};
}