Open savq opened 5 months ago
Nit: Helix is still using the old first-wins precedence; efforts to change are underway but going (very) slowly.
EDIT I think the support is already there, it's just that the queries haven't been adjusted yet.
Someone had already opened a PR in helix to update the julia queries, including the precedence. See https://github.com/helix-editor/helix/pull/10031. I assume that'll get merged when helix switches. So it'll be easy for them to follow upstream too.
Treesitter v0.21.0 made last-wins precedence the default, meaning tree-sitter queries now work in the same order as nvim ~/helix~ queries.
nvim-treesitter also renamed some captures to align with tree-sitter and helix.
This means maintaining a common set of queries is much easier now, it would reduce some duplicated efforts between editors, and also make it easier to handle breaking changes downstream.