emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot b4ffcf2 1/2: Close #646: Add support for zls, th


From: Stefan Monnier
Subject: [elpa] externals/eglot b4ffcf2 1/2: Close #646: Add support for zls, the Zig Language Server
Date: Fri, 26 Mar 2021 22:46:59 -0400 (EDT)

branch: externals/eglot
commit b4ffcf26fb392ed83f6c40bc9b62cbe54483119c
Author: Johnathan C. Maudlin <13183098+jcmdln@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    Close #646: Add support for zls, the Zig Language Server
    
    * eglot.el (eglot-server-programs): Add zig-mode entry.
    
    * README.md (Connecting to a server): Mention zls.
    
    Copyright-paperwork-exempt: yes
---
 README.md | 2 ++
 eglot.el  | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 28e7b61..c5716bc 100644
--- a/README.md
+++ b/README.md
@@ -60,6 +60,7 @@ find-library` can help you tell if that happened.
 * Nix's [rnix-lsp][rnix-lsp]
 * Godot Engine's [built-in LSP][godot]
 * Fortran's [fortls][fortls]
+* Zig's [zls][zls]
 
 I'll add to this list as I test more servers. In the meantime you can
 customize `eglot-server-programs`:
@@ -561,3 +562,4 @@ Under the hood:
 [godot]: https://godotengine.org
 [fortls]: https://github.com/hansec/fortran-language-server
 [gospb]: 
https://opensource.googleblog.com/2020/10/announcing-latest-google-open-source.html
+[zls]: https://github.com/zigtools/zls
diff --git a/eglot.el b/eglot.el
index 0341ffd..5914f2d 100644
--- a/eglot.el
+++ b/eglot.el
@@ -125,7 +125,8 @@ language-server/bin/php-language-server.php"))
                                 (erlang-mode . ("erlang_ls" "--transport" 
"stdio"))
                                 (nix-mode . ("rnix-lsp"))
                                 (gdscript-mode . ("localhost" 6008))
-                                (f90-mode . ("fortls")))
+                                (f90-mode . ("fortls"))
+                                (zig-mode . ("zls")))
   "How the command `eglot' guesses the server to start.
 An association list of (MAJOR-MODE . CONTACT) pairs.  MAJOR-MODE
 is a mode symbol, or a list of mode symbols.  The associated



reply via email to

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