Fallback to system libraries for tree-sitter grammars #13427
-
Would the maintainers be open for a PR enabling I am unsure how cross-platform this approach is since I only use Linux. Also, when talking about "system libraries" I mean something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The parsers can't be separated from the queries: their versions depend on one another. For example a newer version of a parser might rename or remove a node and then older queries matching on that node will then fail to compile. Eventually we want to replace the current grammar loading system with a new one using some of the tools in https://github.com/helix-editor/tree-house. That will improve the UX of starting a fresh Helix instance with no grammars installed: you should be prompted asking if you want to download and compile the parsers and queries and they would likely move from |
Beta Was this translation helpful? Give feedback.
The parsers can't be separated from the queries: their versions depend on one another. For example a newer version of a parser might rename or remove a node and then older queries matching on that node will then fail to compile.
Eventually we want to replace the current grammar loading system with a new one using some of the tools in https://github.com/helix-editor/tree-house. That will improve the UX of starting a fresh Helix instance with no grammars installed: you should be prompted asking if you want to download and compile the parsers and queries and they would likely move from
$HELIX_RUNTIME/grammars
to somewhere under XDG state dir.