Treesitter not installing grammars with nix #2220
-
Treesitter doesn't seem to resepect grammar packages. I tried removing everything and just enabling treesitter. But that did not install any grammar either. Only installing with non-nix method works. I'm using nixvim as homeManager module. Before I did this flake update. It was working just fine. Treesitter configClick me{ pkgs, ... }:
{
programs.nixvim = {
plugins = {
treesitter = {
enable = true;
nixvimInjections = true;
nixGrammars = true;
gccPackage = null;
nodejsPackage = null;
treesitterPackage = null;
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
bash
lua
markdown
nix
python
html
css
scss
javascript
typescript
svelte
dockerfile
json
toml
yaml
vim
vimdoc
tmux
regex
gitcommit
gitignore
];
settings = {
indent.enable = true;
highlight = {
enable = true;
additional_vim_regex_highlighting = false;
};
};
};
ts-autotag.enable = true;
};
extraPlugins = [ pkgs.vimPlugins.ts-comments-nvim ];
extraConfigLua = "require 'ts-comments'.setup()";
};
}
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
You are setting This package is how we install the grammar packages. OTTOMH, it's something like We should probably have an assertion or a warning though, if the package is null and the grammar packages are configured. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I can recreate it locally. Gonna bisect. |
Beta Was this translation helpful? Give feedback.
I'm really sorry @khaneliman and @MattSturgeon. The issue happens only when I use Neorg's overlay (
github:nvim-neorg/nixpkgs-neorg-overlay
). I'm still working on finding the root cause. Thankyou for your time!