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:
Henrik Lissner
2025-09-01 18:37:33 +02:00
parent 84e8ae58d1
commit a51690f033
18 changed files with 23 additions and 21 deletions

View File

@@ -5,7 +5,7 @@
:recipe (:files ("*.el"))
:pin "9e3254a0249d720d5fa5603f1f8c3ed0612695af")
(when (modulep! +tree-sitter)
(when (and (modulep! +tree-sitter) (treesit-available-p))
(package! janet-ts-mode
:recipe (:host github :repo "sogaiu/janet-ts-mode")
:pin "ac684edf57e4d4e085cf99d5ad2ee084b46b8123"))