]> git.eshelyaron.com Git - emacs.git/commitdiff
Add lua-language-server to eglot-server-programs
authorBrian Leung <leungbk@posteo.net>
Fri, 21 Oct 2022 05:49:08 +0000 (22:49 -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
lua-language-server.  It is, at the time of writing, more actively
developed and more popular than the lua-lsp server, so prioritize
that.  (Bug#58676)

lisp/progmodes/eglot.el

index ada8b01fec2aa74573e49de921276129941ff834..eb41f7f57894bb5c727e054ba6ab5eef12de8222 100644 (file)
@@ -222,7 +222,8 @@ language-server/bin/php-language-server.php"))
                                 (gdscript-mode . ("localhost" 6008))
                                 ((fortran-mode f90-mode) . ("fortls"))
                                 (futhark-mode . ("futhark" "lsp"))
-                                (lua-mode . ("lua-lsp"))
+                                (lua-mode . ,(eglot-alternatives
+                                              '("lua-language-server" "lua-lsp")))
                                 (zig-mode . ("zls"))
                                 (css-mode . ,(eglot-alternatives '(("vscode-css-language-server" "--stdio") ("css-languageserver" "--stdio"))))
                                 (html-mode . ,(eglot-alternatives '(("vscode-html-language-server" "--stdio") ("html-languageserver" "--stdio"))))