Files
doomemacs/modules/lang/swift/packages.el
Henrik Lissner a51690f033 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.
2025-09-01 20:11:02 +02:00

16 lines
652 B
EmacsLisp

;; -*- no-byte-compile: t; -*-
;;; lang/swift/packages.el
(package! swift-mode :pin "e30b9d46e031fd25e794f00f23b6427f44f7d221")
(if (modulep! +lsp)
(unless (modulep! :tools lsp +eglot)
(package! lsp-sourcekit :pin "1fb230109e90303bd36ad75b31e673ddcf928629"))
(when (modulep! :completion company)
(package! company-sourcekit :pin "a1860ad4dd3a542acd2fa0dfac2a388cbdf4af0c"))
(when (modulep! :checkers syntax -flymake)
(package! flycheck-swift :pin "4c5ad401252400a78da395fd56a71e67ff8c2761")))
(when (and (modulep! +tree-sitter) (treesit-available-p))
(package! swift-ts-mode :pin "43a0be79f9758fc444f5fafdff6023c4c7bf80f7"))