diff --git a/modules/lang/sh/doctor.el b/modules/lang/sh/doctor.el index 0575489b3..86ba585a2 100644 --- a/modules/lang/sh/doctor.el +++ b/modules/lang/sh/doctor.el @@ -4,6 +4,10 @@ (unless (executable-find "shellcheck") (warn! "Couldn't find shellcheck. Shell script linting will not work"))) +(when (featurep! :editor format) + (unless (executable-find "shfmt") + (warn! "Couldn't find shfmt. Code formatting will not work."))) + (assert! (or (not (featurep! +tree-sitter)) (featurep! :tools tree-sitter)) "This module requires (:tools tree-sitter)")