tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
337 stars 96 forks source link

Why does the nvim implementation differ so much? #197

Closed tonijarjour closed 10 months ago

tonijarjour commented 10 months ago

Hello, I want to ask why the nvim-treesitter implementation differs so significantly from this one. You can compare the highlights.scm files in each case: nvim-treesitter tree-sitter-rust

Nvim's implementation is much more extensive. Here's a comparison image: image

amaanq commented 10 months ago

It's just preference, nvim's is more granular to allow for more user-control, tree-sitter's is more general and hits more important parts, you can PR relevant bits you'd like added of course if they make sense :)