diff --git a/modules/tools/lsp/doctor.el b/modules/tools/lsp/doctor.el index e7cecb997..a438973e5 100644 --- a/modules/tools/lsp/doctor.el +++ b/modules/tools/lsp/doctor.el @@ -4,7 +4,7 @@ (modulep! +peek))) "+eglot and +peek flags are not compatible. Peek uses lsp-mode, while Eglot is another package altogether for LSP.") -(unless (and (not (modulep! +eglot)) - (executable-find "npm")) - (warn! "Couldn't find npm, most server installers won't work and will have to be installed manually. -For more information, see https://emacs-lsp.github.io/lsp-mode/page/languages/.")) +(when (modulep! +eglot) + (unless (executable-find "npm") + (warn! "Couldn't find npm, most server installers won't work and will have to be installed manually. +For more information, see https://emacs-lsp.github.io/lsp-mode/page/languages/.")))