nix-config/modules/home-manager/neovim/config/plugins/treesitter.nix

49 lines
723 B
Nix
Raw Normal View History

2025-06-02 02:09:06 +01:00
{ pkgs, ... }:
{
plugins = {
treesitter = {
enable = true;
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
bash
comment
css
csv
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
];
2025-07-12 16:33:20 +01:00
settings.highlight.enable = true;
2025-06-02 02:09:06 +01:00
};
treesitter-textobjects.enable = true;
};
}