From 5bbc299b8bfb49c20d9034ddd2d0d29f7152e05b Mon Sep 17 00:00:00 2001 From: Dejan Benedik Date: Tue, 12 Jul 2022 06:38:47 +0200 Subject: [PATCH] docs(sh): add doctor check for shfmt --- modules/lang/sh/doctor.el | 4 ++++ 1 file changed, 4 insertions(+) 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)")