igor-ramazanov / kak-tree-sitter-helix

Generate kak-tree-sitter grammars, queries and themes using Helix.
6 stars 1 forks source link

Remove all default highlighters on loading #36

Open igor-ramazanov opened 5 days ago

igor-ramazanov commented 5 days ago

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 converting helix themes both to kak-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.

igor-ramazanov commented 2 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.

igor-ramazanov commented 1 day ago

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.