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

@@ -4,7 +4,7 @@
(package! qml-mode :pin "6c5f33ba88ae010bf201a80ee8095e20a724558c")
(package! qt-pro-mode :pin "7a2da323de834294b413cbbb3c92f42f54913643")
(when (modulep! +tree-sitter)
(when (and (modulep! +tree-sitter) (treesit-available-p))
(package! qml-ts-mode
:recipe (:host github
:repo "xhcoding/qml-ts-mode")