]> git.eshelyaron.com Git - emacs.git/commitdiff
Use gopls server as the default for go ()
authorIngo Lohmar <ingo.lohmar@posteo.net>
Mon, 23 Sep 2019 18:05:55 +0000 (20:05 +0200)
committerJoão Távora <joaotavora@gmail.com>
Mon, 23 Sep 2019 18:05:55 +0000 (19:05 +0100)
Developers recommend it: see
https://github.com/sourcegraph/go-langserver/blob/master/README.md

* eglot (eglot-server-programs): Use gopls.

* README.md: mention gopls instead of go-langserver.

GitHub-reference: https://github.com/joaotavora/eglot/issues/304

lisp/progmodes/eglot.el

index b87d5bb7c39f991607a2ba5bcc50b8815b871499..d160b57700806933604159c406ed1e116df99260 100644 (file)
@@ -95,8 +95,7 @@ language-server/bin/php-language-server.php"))
                                     :autoport))
                                 (haskell-mode . ("hie-wrapper"))
                                 (kotlin-mode . ("kotlin-language-server"))
-                                (go-mode . ("go-langserver" "-mode=stdio"
-                                            "-gocodecompletion"))
+                                (go-mode . ("gopls"))
                                 ((R-mode ess-r-mode) . ("R" "--slave" "-e"
                                                         "languageserver::run()"))
                                 (java-mode . eglot--eclipse-jdt-contact)