]> git.eshelyaron.com Git - emacs.git/commitdiff
Add metals as the language server for scala
authorAntoine Kalmbach <ane@iki.fi>
Tue, 17 Dec 2019 19:34:29 +0000 (21:34 +0200)
committerJoão Távora <joaotavora@gmail.com>
Tue, 17 Dec 2019 19:34:29 +0000 (20:34 +0100)
* README.md (Connecting to a server): Add metals to the list

* eglot.el (eglot-server-programs): Add metals for scala-mode

Copyright-paperwork-exempt: yes
GitHub-reference: close https://github.com/joaotavora/eglot/issues/376

lisp/progmodes/eglot.el

index 74f06699f2340e3aaae31d6f50d151b31577fee5..3e8eb2d14fd8215349bc34f087b518b2e1a7dda5 100644 (file)
@@ -104,7 +104,8 @@ language-server/bin/php-language-server.php"))
                                 (java-mode . eglot--eclipse-jdt-contact)
                                 (dart-mode . ("dart_language_server"))
                                 (elixir-mode . ("language_server.sh"))
-                                (ada-mode . ("ada_language_server")))
+                                (ada-mode . ("ada_language_server"))
+                                (scala-mode . ("metals-emacs")))
   "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