astro-ts-mode
Emacs major mode for Astro templates (by Sorixelle)
treesit-auto
Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29 (by renzmann)
astro-ts-mode | treesit-auto | |
---|---|---|
1 | 8 | |
13 | 308 | |
- | - | |
4.6 | 8.3 | |
8 months ago | 6 days ago | |
Emacs Lisp | Emacs Lisp | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
astro-ts-mode
Posts with mentions or reviews of astro-ts-mode.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-23.
-
Setting up Doom Emacs for Astro Development
Ruby Juric(the author of astro-ts-mode) converted the snippet to use let to avoid creating a global variable.
treesit-auto
Posts with mentions or reviews of treesit-auto.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-23.
-
Setting up Doom Emacs for Astro Development
Or you can take the red pill and use treesit-auto and automatically install the language grammar.
- treesit-auto: Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29
-
How to use tree-sitter for syntax highlighting in Emacs 29+?
So far I've been using tree-sitter.el with the tree-sitter-hl-mode for syntax highlighting. As far as I understand, Tree Sitter is now built-into Emacs 29 and above as treesit (https://github.com/emacs-mirror/emacs/blob/master/admin/notes/tree-sitter/starter-guide), which makes tree-sitter.el obsolete. There is also this package https://github.com/renzmann/treesit-auto which seems to handle the installation, mapping and activation of the language modes.
-
Emacs 29 included tree-sitter doesn't highlight as much as third party tree-sitter package
If you want it to use the ts modes by default then you'll have to adjust the major-mode-remap-alist variable. Or give the treesit-auto package a shot.
- treesit-auto: Automatically pick between TreeSitter and default major modes in Emacs 29+
-
(Small) breaking changes in treesit-auto 0.5
Over the last couple weeks while putting the treesit-auto package together it gained adoption much faster than I had expected. While I'm incredibly happy others found it useful, that also means that many assumptions in my hacky code were quickly blown apart. Also, in no small part due to my poor documentation, it was confusing to figure out exactly how/what would be supported when trying to add a new language.
-
treesit-auto 0.3: Now with automatic installation of tree-sitter grammars
GitHub for treesit-auto Original announcement of treesit-auto Blog post that inspired treesit-auto
-
Getting Emacs 29 to Automatically Use Tree-sitter Modes ยท robbmann
/u/casouri posted an article recently about getting started with tree-sitter. Unfortunately, it mentioned that automatic switching between those tree-sitter modes and the default modes (e.g. between python-mode and python-ts-mode won't be coming just yet, but there was a suggested workaround. I took a slightly different approach from what was outlined, and wound up with treesit-auto.el, which is customizable, and I think hits all the intended behavior.
What are some alternatives?
When comparing astro-ts-mode and treesit-auto you can also consider the following projects:
tree-sitter-module - Building script for tree-sitter language definitions
GNU Emacs - Mirror of GNU Emacs
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
tree-sitter - An incremental parsing system for programming tools