Skip to content

Commit

Permalink
Use gopls server as the default for Go (joaotavora#304)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ilohmar authored and joaotavora committed Sep 23, 2019
1 parent 28ecd5d commit 7f31f29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ for the language you're using. Otherwise, it prompts you to enter one.
* C/C++'s [ccls][ccls] ([cquery][cquery] and [clangd][clangd] also work)
* Haskell's [IDE engine][haskell-ide-engine]
* Kotlin's [kotlin-language-server][kotlin-language-server]
* Golang's [go-langserver][go-langserver]
* Go's [gopls][gopls]
* Ocaml's [ocaml-language-server][ocaml-language-server]
* R's [languageserver][r-languageserver]
* Dart's [dart_language_server][dart_language_server]
Expand Down Expand Up @@ -348,7 +348,7 @@ Under the hood:
[windows-subprocess-hang]: https://www.gnu.org/software/emacs/manual/html_node/efaq-w32/Subprocess-hang.html
[haskell-ide-engine]: https://github.com/haskell/haskell-ide-engine
[kotlin-language-server]: https://github.com/fwcd/KotlinLanguageServer
[go-langserver]: https://github.com/sourcegraph/go-langserver
[gopls]: https://github.com/golang/go/wiki/gopls
[eclipse-jdt]: https://github.com/eclipse/eclipse.jdt.ls
[ocaml-language-server]: https://github.com/freebroccolo/ocaml-language-server
[r-languageserver]: https://cran.r-project.org/package=languageserver
Expand Down
3 changes: 1 addition & 2 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f31f29

Please sign in to comment.