fix(lsp): don't warn about npm without +eglot
This is only a concern for lsp-mode, which tries to auto-install servers if `lsp-enable-suggest-server-download` is non-nil (which it is, by default). Amend: #7346
This commit is contained in:
parent
3c4921cc57
commit
786dae5a5d
1 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,6 @@
|
||||||
(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.")
|
||||||
|
|
||||||
(when (modulep! +eglot)
|
(unless (modulep! +eglot)
|
||||||
(unless (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. `lsp-mode' needs npm to auto-install some LSP servers. 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/.")))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue