treeman / tree-sitter-djot

MIT License
31 stars 5 forks source link

Add support to the Helix editor #10

Open treeman opened 7 months ago

treeman commented 7 months ago
  1. Add it to languages.toml: https://github.com/helix-editor/helix/blob/master/languages.toml
  2. Insert the queries here: https://github.com/helix-editor/helix/tree/master/runtime/queries
StratusFearMe21 commented 7 months ago

That would be amazing! You might have to have a separate directory for Helix queries though, since it seems that some of the nvim-treesitter queries aren't compatible with Helix, ex. @markup.strong is @markup.bold in Helix

treeman commented 7 months ago

Yes, all the highlights needs to be reworked for the specific editor. The highlight files in this repo have been made with Neovim in mind because that's what I use, but should be seen as a starting point for porting it to other editors.

And even for Neovim they're a little bit different, as nvim-treesitter manages highlights.scm themselves, which is what everyone using Neovim will probably use (unless they create their own query file).