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.
Replies: 2 comments 2 replies
-
Seems that label are assigned from |
Beta Was this translation helpful? Give feedback.
-
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.
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.