emacs-tree-sitter / tree-sitter-langs

Language bundle for Emacs's tree-sitter package
https://emacs-tree-sitter.github.io/languages/
MIT License
254 stars 131 forks source link

Anyone having luck with the json grammar? #715

Open shipmints opened 3 weeks ago

shipmints commented 3 weeks ago

Not working for me. No indentation, for example. The bare Emacs json mode works fine, in contrast.

jcs090218 commented 3 weeks ago

Do you only have an issue with JSON files? Can you provide more information on what needs to be fixed? 🤔 It's working fine on my machine.

shipmints commented 3 weeks ago

Only json files with treesitter, so far. C++, Python work fine. Perhaps you could share your json-ts-mode set up and I'll see if this is user error.

jcs090218 commented 3 weeks ago

This package is the external tree-sitter.el, and not the built-in treesit.el. 🤔 Are you sure you are using this package?

shipmints commented 3 weeks ago

Hmm. I am on vanilla treesit. These grammars are working for me, though. Is this a spotty expectation? I'll have to hunt for another nicely packaged set of version-controlled treesitter grammars if these aren't universal.

shipmints commented 2 weeks ago

Still would be nice to know if the grammars are universal. The treesitter API seems universal, even if the Emacs wrapper isn't.