From 5c54ae1329f05eefb15e52d13e72a327885a58dc Mon Sep 17 00:00:00 2001 From: "Itai Y. Efrat" Date: Wed, 9 Jun 2021 13:42:26 +0300 Subject: [PATCH] lang/json/doctor: only check for jq if ivy is on since `counsel-jq` is only relevant for ivy --- modules/lang/json/doctor.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/lang/json/doctor.el b/modules/lang/json/doctor.el index 5578829e2..f1dc3009a 100644 --- a/modules/lang/json/doctor.el +++ b/modules/lang/json/doctor.el @@ -1,4 +1,5 @@ ;;; lang/json/doctor.el -*- lexical-binding: t; -*- -(unless (executable-find "jq") - (warn! "Couldn't find jq. counsel-jq won't work.")) +(when (and (featurep! :completion ivy) + (not (executable-find "jq"))) + (warn! "Couldn't find jq. counsel-jq won't work." ))