Use treesitter scopes in themes #11147
-
Is there a way to use tree sitter scopes in themes ? Not just the highlight name. |
Beta Was this translation helpful? Give feedback.
Answered by
supersurviveur
Jul 12, 2024
Replies: 2 comments
-
Seems that label are assigned from |
Beta Was this translation helpful? Give feedback.
0 replies
-
Finally it works ! However I don't know if more complex labels should be added to helix directly, not in custom config. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
supersurviveur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finally it works !
Label can be set in
highlights.scm
files in the runtime dir (/usr/lib/helix/runtime/
on my linux). No need to rebuild, they are loaded dynamically.Then you can use these labels in your theme.
However I don't know if more complex labels should be added to helix directly, not in custom config.