diff options
author | Jostein Kjønigsen <jostein@kjonigsen.net> | 2023-04-14 23:11:02 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-04-15 12:16:48 +0300 |
commit | adf9c956c28106f83f06bd150d01bced9b19c1c1 (patch) | |
tree | fdbe79dbaaf600512c9633c67845486b16f68d44 /lisp/progmodes/eglot.el | |
parent | b3603b84bd9c0e2f0fbd6cc49d4d086e7b08735a (diff) | |
download | emacs-adf9c956c28106f83f06bd150d01bced9b19c1c1.tar.gz emacs-adf9c956c28106f83f06bd150d01bced9b19c1c1.tar.bz2 emacs-adf9c956c28106f83f06bd150d01bced9b19c1c1.zip |
Add to Eglot support for additional language-servers.
* lisp/progmodes/eglot.el (eglot-server-programs): Add
'vscode-markdown-language-server' for Markdown and
'dot-language-server' for GraphViz. (Bug#62844)
Diffstat (limited to 'lisp/progmodes/eglot.el')
-rw-r--r-- | lisp/progmodes/eglot.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index a0581126b28..4943b44107a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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 |