treesit-auto
treesit-auto copied to clipboard
Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29
An unguarded `(add-to-list 'auto-mode-alist ...)` introduces a bug in `'auto-mode-alist` _e.g._ the following entry ``` lisp '(nil . glsl-mode) ``` This miserably fails at every file visitation, because `(set-auto-mode)` would...
Opening a python file takes 0.4s more than normal (according to `(benchmark-run 1 (find-file...`) with the global mode enabled. This is for every file open (grammar already installed). `treesit-auto--build-major-mode-remap-alist` is...
releated to #116
Note that as of 2025-03-10, the rule's compatible ABI is v15 and Emacs' tree-sitter compatible ABI must be v15 or higher.
Hi! I am a happy user of `treesit-auto`, and I recently switched to Emacs 30. From the `treesit-auto` readme, I understand that activating tree sitter modes should become easier in...
Doom emacs uses nerd icons for it's mode-line. When using treesit-auto it changes the auto-mode-alist so that one entry of it is (nil . glsl-ts-mode). This causes problems when opening...
Emacs 30+ [introduces a native `php-ts-mode`](https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/php-ts-mode.el?h=emacs-30); I've been using it for a few weeks and it seems to work fine. The new mode depends on all three of these recipes;...
I added your example to my init.el and when I try to load treesit-auto or edit any settings for it it's not there. what am I doing wrong? this is...
Move grammar from the [archived fork](https://github.com/ast-grep/tree-sitter-dart) to the [updated original](https://github.com/UserNobody14/tree-sitter-dart).
When `c-ts-mode.el` loaded, it evaluates ```lisp (and (treesit-ready-p 'cpp) (treesit-ready-p 'c)) ``` which pops up a warning every time even though treesit-auto install mode specific tree-sitter. This was unexpected as...