diff --git a/modules/tools/lsp/doctor.el b/modules/tools/lsp/doctor.el index 9b67ae95c..f4e7c7ed4 100644 --- a/modules/tools/lsp/doctor.el +++ b/modules/tools/lsp/doctor.el @@ -8,5 +8,7 @@ (warn! "Couldn't find npm. `lsp-mode' needs npm to auto-install some LSP servers. For more information, see https://emacs-lsp.github.io/lsp-mode/page/languages/."))) (when (modulep! +booster) - (unless (executable-find "emacs-lsp-booster") - (warn! "Couldn't find emacs-lsp-booster executable."))) + (if (modulep! +eglot) + (unless (executable-find "emacs-lsp-booster") + (warn! "Couldn't find emacs-lsp-booster executable.")) + (error! "+booster does nothing without +eglot")))