nix-config/modules/nixvim/treesitter.nix
Oliver Davies b42daccb99
Some checks are pending
/ check (push) Waiting to run
Enable TreeSitter indentation
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
2025-11-10 14:57:20 +00:00

54 lines
1,021 B
Nix

{
flake.modules.nixvim.custom =
{ pkgs, ... }:
{
plugins = {
treesitter = {
enable = true;
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
bash
comment
css
csv
devicetree
dockerfile
gitattributes
gitignore
go
html
javascript
json
kdl
lua
luadoc
make
markdown
markdown_inline
nix
php
phpdoc
query
rst
scss
sql
terraform
twig
typescript
vim
vimdoc
vue
xml
yaml
];
settings = {
highlight.enable = true;
indent.enable = true;
};
};
treesitter-textobjects.enable = true;
};
};
}