From: Ingo Lohmar Date: Mon, 23 Sep 2019 18:05:55 +0000 (+0200) Subject: Use gopls server as the default for go () X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~318 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c53777030187d7273e05b84e242f2b3b5cfe513f;p=emacs.git Use gopls server as the default for go () 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 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index b87d5bb7c39..d160b577008 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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)