Helix finds tree-sitter grammar parser, but not highlight queries #15660
-
|
I created a tree-sitter grammar for a custom config language i'm hacking on called I followed Adding languages and Languages from the helix docs. The grammar: codeberg.org/chjlsch/tree-sitter-prosa-conf. Helix version: Language config: [[language]]
name = "prosa_conf"
scope = "source.prosa.conf"
injection-regex = "prosa"
file-types = [
{ glob = "prosa.conf" },
]
roots = ["prosa.conf"]
comment-token = "#"
indent = { tab-width = 4, unit = "\t" }
[[grammar]]
name = "prosa_conf"
source = { git = "https://codeberg.org/chjlsch/tree-sitter-prosa-conf", rev = "134ef0c929f0e6b72eac34fc2275f968f66b3818" }Helix health ( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
The |
Beta Was this translation helpful? Give feedback.
-
|
For future reference: I placed the |
Beta Was this translation helpful? Give feedback.
The
[[grammar]]config only shows Helix where to find the parser. The queries need to be copied intoruntime/helix/<language>/*.scm. We don't use the queries in the grammar repository since they typically do not match the captures we use: https://docs.helix-editor.com/master/themes.html#syntax-highlighting