Files
nvim/config/modules/plugins/treesitter.nix

38 lines
666 B
Nix
Raw Normal View History

2025-10-23 19:50:10 +03:00
{ pkgs, ... }:
{
plugins = {
treesitter = {
enable = true;
settings = {
indent = {
enable = true;
};
highlight = {
enable = true;
};
};
nixvimInjections = true;
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
};
treesitter-context = {
enable = false;
};
treesitter-textobjects = {
enable = true;
settings = {
select = {
enable = true;
lookahead = true;
};
2025-10-23 19:50:10 +03:00
};
};
};
extraConfigLua = ''
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
'';
}