treesitter configured
This commit is contained in:
parent
4ad80df1eb
commit
0791d5bd92
2 changed files with 38 additions and 1 deletions
|
@ -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
37
plugins/treesitter.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue