[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making `eglot-server-programs' a custom variable?
From: |
Arash Esbati |
Subject: |
Re: Making `eglot-server-programs' a custom variable? |
Date: |
Thu, 10 Nov 2022 10:18:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 |
Eli Zaretskii <eliz@gnu.org> writes:
> The intent is for this variable to include enough servers to make it
> unnecessary to add to the list.
Ok, that's a different story. Would it then make sense to add a comment
to the manual about each server and if they work on the platforms Emacs
runs? Currently, "digestif" doesn't run on Windows, "texlab" (see
below) does. I know, this is work and possibly out of Eglot's scope,
but it could give users some direction.
> Is the LSP server you needed to add still missing from the database
> currently on master? If so, please suggest the addition(s).
The addition would look like this:
--8<---------------cut here---------------start------------->8---
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 2eaa396386..f69d392b46 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -217,7 +217,7 @@ eglot-server-programs
(scala-mode . ("metals-emacs"))
(racket-mode . ("racket" "-l"
"racket-langserver"))
((tex-mode context-mode texinfo-mode
bibtex-mode)
- . ("digestif"))
+ . ,(eglot-alternatives '("digestif"
"texlab")))
(erlang-mode . ("erlang_ls" "--transport"
"stdio"))
(yaml-mode . ("yaml-language-server"
"--stdio"))
(nix-mode . ,(eglot-alternatives '("nil"
"rnix-lsp")))
--8<---------------cut here---------------end--------------->8---
Best, Arash
- Re: Making `eglot-server-programs' a custom variable?, (continued)
Re: Making `eglot-server-programs' a custom variable?, Eli Zaretskii, 2022/11/10
Re: Making `eglot-server-programs' a custom variable?,
Arash Esbati <=
- Re: Making `eglot-server-programs' a custom variable?, Eli Zaretskii, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, João Távora, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, Eli Zaretskii, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, Eli Zaretskii, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, João Távora, 2022/11/10
- Re: Making `eglot-server-programs' a custom variable?, Yuri Khan, 2022/11/11
- Re: Making `eglot-server-programs' a custom variable?, João Távora, 2022/11/11
- Re: Making `eglot-server-programs' a custom variable?, Brian Cully, 2022/11/11
- Re: Making `eglot-server-programs' a custom variable?, Michael Albinus, 2022/11/12
Re: Making `eglot-server-programs' a custom variable?, Eli Zaretskii, 2022/11/11