Open igor-ramazanov opened 5 days ago
There's a nice function tree-sitter-user-after-highlighter
which I use locally.
Should either mention in the docs or generate and link a .kak
file.
So, the flag remove_default_highlighter
works, but not for the first opened buffer.
The tree-sitter-user-after-highlighter
does not have such problem.
Supersedes https://github.com/igor-ramazanov/kak-tree-sitter-helix/issues/2.
I think, it makes more sense to remove default highlighters altogether and to rely only on the
kak-tree-sitter-helix
, instead of solving a complex problem of convertinghelix
themes both tokak-tree-sitter
and default Kakoune faces, and then also managing them together while ensuring correct fallbacks and translating one to another.Better to focus on one thing and do it well.
And if something is not ok, then it's better to fix it in the
helix
repository either if it's a theme or tree-sitter grammar/queries.