News for hackers. Stuff that matters.
Re:Zed, a collaborative code editor, is now open source by The_Colonel on Thursday January 25, 2024 @01:19AM (#39126761)
As I understand, tree-sitter implementation in Emacs is currently more like a foundation for development / adoption by plugins, it's not really usable as-is today.
Re:Zed, a collaborative code editor, is now open source by nequo on Thursday January 25, 2024 @02:02AM (#39126991)
Emacs already had tree-sitter before 29, just not built in. You can do syntax highlighting[1] and structured editing with it.[2] What is missing for it to be usable in your view?

[1] https://emacs-tree-sitter.github.io/syntax-highlighting/

[2] https://github.com/meain/evil-textobj-tree-sitter

Re:Zed, a collaborative code editor, is now open source by epcoa on Thursday January 25, 2024 @02:39AM (#39127190)
Your understanding is outdated/incorrect. Already a number of major modes have corresponding ts modes and I use them daily. This includes C++, Rust, Python, yaml, toml, json, Java, typescript, dockerfile and cmake. True not every major mode has treesitter in the official release but I’d hardly call the above “not usable”
Re:Zed, a collaborative code editor, is now open source by chlorion on Saturday January 27, 2024 @02:10PM (#39158780)
There are multiple tree-sitter based major modes that are usable right now!

I use python-ts-mode, rust-ts-mode, c++-ts-mode, bash-ts-mode and a few more right now and they work well.

You can write your own modes with it also, but I have not yet looked too deeply into this.

It's definitely usable today in emacs-29, but not every language has a tree-sitter mode yet.

Whoops my tab was outdated and I didn't see that others already replied.