treesit-auto
treesit-auto copied to clipboard
The new version opens the CPP file and cannot find C (the right that should be found C ++)
Steps to Reproduce:
- Open cpp file, install cpp treesit
- restart emacs
- Open cpp file, tip: Warning (treesit): Cannot activate tree-sitter, because language grammar for c is unavailable
Temporarily can be solved by installing the Treesit library of C:
Open c file to install c treesit lib
In our recipe for C++, we don't have a :requires keyword in there:
https://github.com/renzmann/treesit-auto/blob/1b63bc5e50def3c14ab69e53ed6e7f65a7482016/treesit-auto.el#L130-L135
For instance, we say that gomod requires go
https://github.com/renzmann/treesit-auto/blob/1b63bc5e50def3c14ab69e53ed6e7f65a7482016/treesit-auto.el#L173-L179
If you open a PR that adds this :requries keyword and test that it works for your use case, I'm happy to take it