mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-06 15:13:33 -05:00
fix(:lang): add treesit-available-p checks to *-ts-mode packages
Otherwise package installation will throw Emacs version errors for users on 28 and under.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
(modulep! :tools lsp))
|
||||
"This module requires (:tools lsp)")
|
||||
|
||||
(when (modulep! +tree-sitter)
|
||||
(when (and (modulep! +tree-sitter) (treesit-available-p))
|
||||
(assert! (modulep! :tools tree-sitter)
|
||||
"This module requires (:tools tree-sitter)")
|
||||
(assert! (fboundp 'php-ts-mode)
|
||||
|
Reference in New Issue
Block a user