lasse16 / dotfiles

These are my dotfiles, including a basic setup and disable script.
2 stars 0 forks source link

Investigate what tree-sitter grammar binaries are for. #6

Closed lasse16 closed 2 years ago

lasse16 commented 3 years ago

Check #2 There are mysterious binaries located at .tree-sitter/bin. They are not generated for every grammar installed. I'm hoping they are replacements for the entire grammar repositiory but thats only a small hope.

lasse16 commented 3 years ago

There is no issue on the tree-sitter mentioning these binaries. The documentation mentiones them only as compiled language binaries. Further testing needed. Can I delete the grammar-repo?

docs (https://tree-sitter.github.io/tree-sitter/syntax-highlighting) """ The Tree-sitter CLI automatically creates a directory in your home folder called ~/.tree-sitter. This is used to store compiled language binaries, and it can also contain a JSON configuration file. """

lasse16 commented 2 years ago

Found out, that these binaries are the only thing installed when setting up nvim-treesitter. So, I figured that they can be removed. The grammars are only necessary for generating these binaries, all queries then only require these binaries.