Open wskeele opened 1 month ago
Not sure what's going on here, because grammarPackages
defaults to plugins.treesitter.package.passthru.allGrammars
and nixGrammars
defaults to true. So the nix grammars are installed by default, as was done before.
Maybe the plugin's (upstream) option ensure_installed
doesn't know about nix grammar packages so it tries to build its own?
Since you set that explicitly, we will just pass it to the plugin to do as it likes with your value. We used to silently ignore ensure_installed
when nixGrammars
was true.
I think the proper fix is to print a warning when nixGrammars
is used together with ensure_installed
.
Ok, so at least, a simple workaround is just to remove the line:
settings.ensure_installed = "all";
Not exactly sure how to approach a warning here. I could see explaining the interaction of these options better in the docs, but there would be a real use case for someone wanting stuff installed through nixGrammars
and then having something else provided from ensure_installed
.
That's reasonable. Since we don't have a way to silence warnings I think updating the descriptions is the best approach.
We should probably note in the ensure_installed
description that it relates to grammars installed by the plugin and usually isn't needed when using nixGrammars
.
Description
Previous behavior for treesitter was that each grammar package was built and installed by nix. Now I get this message when opening nvim, which prevents it from being usable:
At some point "more" just freezes and it becomes impossible to use or exit nvim at all.
Minimal, Reproducible Example (MRE)