docs(lsp): add warning for missing npm

This commit is contained in:
Ellis Kenyő 2022-05-26 22:38:50 +01:00 committed by GitHub
parent 68191e7419
commit 7b66fbbed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,3 +3,7 @@
(assert! (not (and (featurep! +eglot) (assert! (not (and (featurep! +eglot)
(featurep! +peek))) (featurep! +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 (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/."))