Fetched grammar queries not discovered #11379
-
I'm trying to add grammar / LSP support for TypeSpec and its mostly working, but
I successfully ran
Should the The additions I made to use-grammars = { only = ["typespec"] }
[[grammar]]
name = "typespec"
source = { git = "https://github.com/happenslol/tree-sitter-typespec", rev = "28821d0d6da5f0a6b5eb02b9bad953fecafd7248" }
[[language]]
name = "typespec"
scope = "source.tsp"
injection-regex = "(tsp|typespec)"
file-types = ["tsp"]
roots = ["tspconfig.yaml"]
auto-format = true
comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" }
indent = { tab-width = 2, unit = " " }
language-servers = ["typespec"]
[language-server.typespec]
command = "tsp-server"
args = ["--stdio"] The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Yes, you have to copy over the queries over to |
Beta Was this translation helpful? Give feedback.
Yes, you have to copy over the queries over to
~/.config/helix/runtime/queries/<lang>
and likely do some tinkering. Queries are supposed to be tailored to each editor so it's not desirable in most cases to use the queries in the grammar source folder. Our highlighting scopes are documented at https://docs.helix-editor.com/themes.html#syntax-highlighting