renzmann / treesit-auto

Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29
GNU General Public License v3.0
369 stars 28 forks source link

Add file extensions to treesit-auto recipes #56

Closed mgmarlow closed 11 months ago

mgmarlow commented 11 months ago

In many cases, the major modes required for activating a tree-sitter mode via global-treesit-auto-mode are not available out-of-the-box with Emacs. This means that enabling a tree-sitter mode requires (a) installing the parser and (b) installing the prerequisite major mode before you can use the tree-sitter mode.

This commit adds a new function that registers tree-sitter modes based on file extension, enabling use of tree-sitter major modes without needing to install any other packages.

This fixes #55