2024-08-08 09:58:48 +08:00
|
|
|
{pkgs, ...}: {
|
2024-08-04 21:19:37 +08:00
|
|
|
# Tree-sitter is a parser generator tool and an incremental parsing library.
|
|
|
|
plugins.treesitter = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# Options provided to the require('nvim-treesitter.configs').setup function.
|
|
|
|
settings = {
|
2024-08-08 09:58:48 +08:00
|
|
|
highlight = {
|
2024-08-04 21:19:37 +08:00
|
|
|
enable = true; # Enable syntax highlighing.
|
|
|
|
};
|
|
|
|
indent = {
|
|
|
|
enable = true; # Enable auto indentation.
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Highlight `extraConfigLua` as lua.
|
|
|
|
nixvimInjections = true;
|
|
|
|
# Install all grammar packages.
|
|
|
|
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
|
|
|
|
};
|
|
|
|
}
|