Only enable treesit for modes where treesit-ready-p is true

This commit is contained in:
Vedang Manerikar 2024-12-30 11:49:03 +05:30
parent d6fcc00bd4
commit 153541e842
2 changed files with 2 additions and 2 deletions

View file

@ -1527,7 +1527,7 @@ a later date.
:ensure t
:config
(setq treesit-auto-install 'prompt)
(treesit-auto-add-to-auto-mode-alist 'all)
(treesit-auto-add-to-auto-mode-alist)
(global-treesit-auto-mode)))
#+end_src

View file

@ -117,7 +117,7 @@
:ensure t
:config
(setq treesit-auto-install 'prompt)
(treesit-auto-add-to-auto-mode-alist 'all)
(treesit-auto-add-to-auto-mode-alist)
(global-treesit-auto-mode)))
;;; Mark syntactic constructs efficiently if tree-sitter is available (expreg)