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

@@ -6,5 +6,5 @@
(package! company-mlton
:recipe (:host github :repo "MatthewFluet/company-mlton" :files ("*.el" "*.basis"))
:pin "9b09d209b4767a2af24784fb5321390ed1d445bf"))
(when (modulep! +tree-sitter)
(when (and (modulep! +tree-sitter) (treesit-available-p))
(package! sml-ts-mode :pin "d2dabcc9d8f91eeee7048641e4c80fabb3583194"))