Integrating tree-sitter-lilypond into Helix #13120
-
How can I go about integrating nwhetsell/tree-sitter-lilypond into Helix? I'm assuming I would need to write Helix-specific queries. (Related issue in the grammar's repo.) Does #12972 affect that? Here is the relevant section in my [[language]]
name = "lilypond"
scope = "scope.lilypond"
file-types = ["lilypond", "ly"]
comment-tokens = "%"
indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "lilypond"
source = { git = "https://github.com/nwhetsell/tree-sitter-lilypond" } |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
#12972 will change the way we write |
Beta Was this translation helpful? Give feedback.
#12972 will change the way we write
locals.scm
queries but otherwise it won't change highlighting queries. You'll need to add that section tolanguages.toml
and add highlights inruntime/queries/lilypond/highlights.scm
. You can use thehighlights.scm
in the tree-sitter-lilypond repo as a guide and adapt the captures to follow the ones we use: https://docs.helix-editor.com/master/themes.html#syntax-highlighting. Also see https://docs.helix-editor.com/master/guides/adding_languages.html and the other guides on the docs website