emacs-tree-sitter / tree-sitter-langs

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

Request: Enable use with Emacs 29's built-in tree-sitter modes #144

Open denisw opened 1 year ago

denisw commented 1 year ago

Emacs 29 will come with built-in support for tree-sitter, but doesn't seem to ship any grammar binaries, not even those needed by the provided major modes (e.g., typescript-ts-mode).

tree-sitter-langs would be a great way to install those grammars, but it would need two tweaks to work out of the box:

Would you be interested in making these tweaks to make tree-sitter-langs work with the built-in Tree Sitter support as well?

meain commented 1 year ago

There is an open PR for this at https://github.com/emacs-tree-sitter/tree-sitter-langs/pull/99

denisw commented 1 year ago

@meain Thanks for the link, I didn‘t see that PR. It seems to be more ambitious, though, in that it also tries to integrate the highlight patterns. Focusing on the binaries only could be a less tricky first step that would already provide tons of value to Emacs 29 users.

domq commented 1 year ago

Focusing on the binaries only could be a less tricky first step that would already provide tons of value to Emacs 29 users.

@denisw: kindly consider #157 that does just that.

l2dy commented 2 weeks ago

FYI, there is https://github.com/emacs-tree-sitter/treesit-langs for the new treesit.el.