]> git.eshelyaron.com Git - emacs.git/commitdiff
Add the "nil" language server to eglot-server-programs
authorBrian Leung <leungbk@posteo.net>
Fri, 21 Oct 2022 05:47:10 +0000 (22:47 -0700)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 21 Oct 2022 08:20:20 +0000 (10:20 +0200)
* lisp/progmodes/eglot.el (eglot-server-programs): Add the "nil"
language server.  Put it before rnix-lsp since it is more featureful
and more actively updated.  (Bug#58676)
Ref: https://github.com/oxalica/nil

lisp/progmodes/eglot.el

index eb41f7f57894bb5c727e054ba6ab5eef12de8222..71001ba68026146b1fd2a518b3153f98f5d9bb5c 100644 (file)
@@ -218,7 +218,7 @@ language-server/bin/php-language-server.php"))
                                  . ("digestif"))
                                 (erlang-mode . ("erlang_ls" "--transport" "stdio"))
                                 (yaml-mode . ("yaml-language-server" "--stdio"))
-                                (nix-mode . ("rnix-lsp"))
+                                (nix-mode . ,(eglot-alternatives '("nil" "rnix-lsp")))
                                 (gdscript-mode . ("localhost" 6008))
                                 ((fortran-mode f90-mode) . ("fortls"))
                                 (futhark-mode . ("futhark" "lsp"))