How to configure helix to use system wide tree-sitter? #12433
-
I have tree-sitter languages in my
[[grammar]]
name = "rust"
source.local = { path = "/usr/lib/libtree-sitter-rust.so" } |
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Jan 6, 2025
Replies: 1 comment 3 replies
-
The |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
elde-n
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
local
source takes a path to a tree-sitter grammar's repository and it expects to find asrc/parser.c
and maybesrc/scanner.c
in that directory. It's for specifying source files though and is only considered byhx -g build
(not used when loading a parser): you can't point to a compiled parser.