mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
ony search for shellcheck executable when flycheck is enabled
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
;;; lang/sh/doctor.el -*- lexical-binding: t; -*-
|
||||
|
||||
(when! (not (executable-find "shellcheck"))
|
||||
(warn! "Couldn't find shellcheck. Shell script linting will not work"))
|
||||
|
||||
(when (featurep! :tools flycheck)
|
||||
(unless (executable-find "shellcheck")
|
||||
(warn! "Couldn't find shellcheck. Shell script linting will not work")))
|
||||
|
Reference in New Issue
Block a user