nix-config/programs/nixvim/plugins/treesitter.nix

70 lines
1.1 KiB
Nix
Raw Normal View History

2025-10-03 20:20:39 -07:00
{ pkgs, ... }:
{
programs.nixvim.plugins = {
treesitter = {
enable = true;
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
awk
bash
c
cpp
css
dockerfile
fish
git-rebase
gitattributes
gitcommit
gitignore
go
haskell
hocon
html
http
java
javascript
json
json5
jsonc
lua
make
markdown
markdown-inline
nix
proto
python
rust
scala
sql
swift
terraform
toml
typescript
vim
xml
yaml
];
nixvimInjections = true;
settings = {
highlight.enable = true;
indent.enable = true;
};
folding = false;
};
treesitter-refactor = {
enable = true;
highlightDefinitions = {
enable = true;
# Set to false if you have an `updatetime` of ~100.
clearOnCursorMove = false;
};
};
hmts.enable = true;
};
}