Files
nvim/config/modules/plugins/treesitter.nix
Mykhailo Nikiforov d0011ce867
All checks were successful
check-commits / Check commits (pull_request) Successful in 9s
build-flake / build (pull_request) Successful in 2m54s
feat: nixvim configuration init
2025-10-23 19:50:10 +03:00

36 lines
630 B
Nix

{ 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;
select = {
enable = true;
lookahead = true;
};
};
};
extraConfigLua = ''
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
'';
}