]> git.eshelyaron.com Git - emacs.git/commitdiff
Add to Eglot support for additional language-servers.
authorJostein Kjønigsen <jostein@kjonigsen.net>
Fri, 14 Apr 2023 21:11:02 +0000 (23:11 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 15 Apr 2023 09:16:48 +0000 (12:16 +0300)
* lisp/progmodes/eglot.el (eglot-server-programs): Add
'vscode-markdown-language-server' for Markdown and
'dot-language-server' for GraphViz.  (Bug#62844)

lisp/progmodes/eglot.el

index a0581126b2827969dc6bea8f800237134fcbcf7b..4943b44107aa9d193408278df8ce81dbc64a17f2 100644 (file)
@@ -249,7 +249,11 @@ chosen (interactively or automatically)."
                                        ("csharp-ls"))))
                                 (purescript-mode . ("purescript-language-server" "--stdio"))
                                 ((perl-mode cperl-mode) . ("perl" "-MPerl::LanguageServer" "-e" "Perl::LanguageServer::run"))
-                                (markdown-mode . ("marksman" "server")))
+                                (markdown-mode
+                                 . ,(eglot-alternatives
+                                     '(("marksman" "server")
+                                       ("vscode-markdown-language-server" "--stdio"))))
+                                (graphviz-dot-mode . ("dot-language-server" "--stdio")))
   "How the command `eglot' guesses the server to start.
 An association list of (MAJOR-MODE . CONTACT) pairs.  MAJOR-MODE
 identifies the buffers that are to be managed by a specific