From 7b66fbbed785c190fe3adc94b1bc5fe0b071812c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ellis=20Keny=C5=91?= Date: Thu, 26 May 2022 22:38:50 +0100 Subject: [PATCH] docs(lsp): add warning for missing npm --- modules/tools/lsp/doctor.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/tools/lsp/doctor.el b/modules/tools/lsp/doctor.el index b8f370a21..798a23826 100644 --- a/modules/tools/lsp/doctor.el +++ b/modules/tools/lsp/doctor.el @@ -3,3 +3,7 @@ (assert! (not (and (featurep! +eglot) (featurep! +peek))) "+eglot and +peek flags are not compatible. Peek uses lsp-mode, while Eglot is another package altogether for LSP.") + +(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/."))