]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Scala entry in Eglot's DB of LSP servers
authorEli Zaretskii <eliz@gnu.org>
Thu, 9 Feb 2023 10:17:18 +0000 (12:17 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 Feb 2023 10:17:18 +0000 (12:17 +0200)
* lisp/progmodes/eglot.el (eglot-server-programs): Support Scala
LSP named "metals", in addition to "metals-emacs".  (Bug#61312)

lisp/progmodes/eglot.el

index c906890c949fbcd55477682e440529e9efc9a693..58d519548e01a7fc6a021a587a27250fdbca5dc1 100644 (file)
@@ -221,7 +221,8 @@ chosen (interactively or automatically)."
                                               "--client-id" "emacs.eglot-dart"))
                                 (elixir-mode . ("language_server.sh"))
                                 (ada-mode . ("ada_language_server"))
-                                (scala-mode . ("metals-emacs"))
+                                (scala-mode . ,(eglot-alternatives
+                                                '("metals" "metals-emacs")))
                                 (racket-mode . ("racket" "-l" "racket-langserver"))
                                 ((tex-mode context-mode texinfo-mode bibtex-mode)
                                  . ,(eglot-alternatives '("digestif" "texlab")))