4 ms·
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 tod
by The_Colonel 3y ago
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.
- chlorion 3y agoThere 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.
- nequo 3y agoEmacs 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/ https://emacs-tree-sitter.github.io/syntax-highlighting/ [2] https://github.com/meain/evil-textobj-tree-sitter https://github.com/meain/evil-textobj-tree-sitter
- epcoa 3y agoYour 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”