[Top][All Lists]

[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" 
                                 ((tex-mode context-mode texinfo-mode 
-                                 . ("digestif"))
+                                 . ,(eglot-alternatives '("digestif" 
                                 (erlang-mode . ("erlang_ls" "--transport" 
                                 (yaml-mode . ("yaml-language-server" 
                                 (nix-mode . ,(eglot-alternatives '("nil" 
--8<---------------cut here---------------end--------------->8---

Best, Arash

reply via email to

[Prev in Thread] Current Thread [Next in Thread]