2021-10-19 19:26:26 +01:00
|
|
|
;;; lang/swift/doctor.el -*- lexical-binding: t; -*-
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
|
|
(modulep! :tools tree-sitter))
|
2021-10-19 19:26:26 +01:00
|
|
|
"This module requires (:tools tree-sitter)")
|
2022-08-17 07:58:05 +01:00
|
|
|
|
|
|
|
(when (modulep! :editor format)
|
|
|
|
(unless (executable-find "swiftformat")
|
|
|
|
(warn! "Couldn't find swiftformat. Formatting will be disabled.")))
|