You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing an extension for my https://github.com/uncenter/tree-sitter-tera grammar. Neovim Tree-sitter automatically pulls in the queries from https://github.com/uncenter/tree-sitter-tera/tree/main/queries, but I believe for Zed I will have to copy these over (or have some sort of build/update script) to the extension source. It would be nice if by adding the grammar Zed would look in the queries/ directory by default.
The text was updated successfully, but these errors were encountered:
The capture group names typically used in the neovim highlight queries don't always match with ones in zed themes. There's also special capture groups with special behaviour in neovim such as "spell", and quite a few directives like "lua-match" (in zed use "match" instead), or "offset" that are not available in zed.
The capture group names typically used in the neovim highlight queries don't always match with ones in zed themes.
They should though! The Tree-sitter ecosystem is doing a good job of converging on standarized captures, though Zed is currently somewhat of an exception in that it uses non-standard language injection captures (zed-industries/zed#9654) and doesn't support extending queries either. This shouldn't be considered an argument against this, rather an issue that needs to be fixed.
There's also special capture groups with special behaviour in neovim such as "spell"
Can't these captures just be ignored?
and quite a few directives like "lua-match" (in zed use "match" instead), or "offset" that are not available in zed.
Sure, but the vast majority of queries are compatible, not to mention that grammars should be using match if possible, Zed could even support lua-match I imagine, and Zed should support offsets.
I'm developing an extension for my https://github.com/uncenter/tree-sitter-tera grammar. Neovim Tree-sitter automatically pulls in the queries from https://github.com/uncenter/tree-sitter-tera/tree/main/queries, but I believe for Zed I will have to copy these over (or have some sort of build/update script) to the extension source. It would be nice if by adding the grammar Zed would look in the
queries/
directory by default.The text was updated successfully, but these errors were encountered: