fix(lsp): check npm when eglot is enabled

This commit is contained in:
Yejun Su 2023-08-14 00:13:46 +08:00 committed by Henrik Lissner
parent 23c0eeba45
commit 5639ebf942

View file

@ -4,7 +4,7 @@
(modulep! +peek))) (modulep! +peek)))
"+eglot and +peek flags are not compatible. Peek uses lsp-mode, while Eglot is another package altogether for LSP.") "+eglot and +peek flags are not compatible. Peek uses lsp-mode, while Eglot is another package altogether for LSP.")
(unless (and (not (modulep! +eglot)) (when (modulep! +eglot)
(executable-find "npm")) (unless (executable-find "npm")
(warn! "Couldn't find npm, most server installers won't work and will have to be installed manually. (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/.")) For more information, see https://emacs-lsp.github.io/lsp-mode/page/languages/.")))