Skip to content

Commit

Permalink
Add go-langserver (joaotavora#74)
Browse files Browse the repository at this point in the history
Copyright-paperwork-exempt: yes

* README.md (Installation and usage): Add go-langserver.
* eglot.el (eglot-server-programs): Add go-langserver.
  • Loading branch information
edkolev authored and joaotavora committed Aug 18, 2018
1 parent c0f9db7 commit e711bdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ for the language of your choice. Otherwise, it prompts you to enter one:
* C/C++'s [cquery][cquery]
* Haskell's [IDE engine][haskell-ide-engine]
* Kotlin's [kotlin-language-server][kotlin-language-server]
* Golang's [go-langserver][go-langserver]

I'll add to this list as I test more servers. In the meantime you can
customize `eglot-server-programs`:
Expand Down Expand Up @@ -288,4 +289,5 @@ 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

3 changes: 2 additions & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
(php-mode . ("php" "vendor/felixfbecker/\
language-server/bin/php-language-server.php"))
(haskell-mode . ("hie-wrapper"))
(kotlin-mode . ("kotlin-language-server")))
(kotlin-mode . ("kotlin-language-server"))
(go-mode . ("go-langserver" "-mode=stdio" "-gocodecompletion")))
"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
Expand Down

0 comments on commit e711bdb

Please sign in to comment.