Without this patch, opening up a hello.rs without rust-mode installed just leaves us in fundamental-mode without any of the expected benefits of treesit-auto.
This patch enables treesit-auto to install the grammar for a mode if the corresponding ts-mode is already installed, even if no fallback mode is installed. Some examples of ts-modes that come with Emacs 29 that don't have a fallback mode are:
Without this patch, opening up a
hello.rs
withoutrust-mode
installed just leaves us infundamental-mode
without any of the expected benefits oftreesit-auto
.This patch enables
treesit-auto
to install the grammar for a mode if the correspondingts-mode
is already installed, even if no fallback mode is installed. Some examples of ts-modes that come with Emacs 29 that don't have a fallback mode are:rust-ts-mode
yaml-ts-mode
toml-ts-mode
go-ts-mode