From e711bdb4b7533469436e640e9c1f3fab59b1eca8 Mon Sep 17 00:00:00 2001 From: Evgeni Kolev Date: Sat, 18 Aug 2018 14:33:13 +0300 Subject: [PATCH] Add go-langserver (#74) Copyright-paperwork-exempt: yes * README.md (Installation and usage): Add go-langserver. * eglot.el (eglot-server-programs): Add go-langserver. --- README.md | 2 ++ eglot.el | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ad47330a..f35efa46 100644 --- a/README.md +++ b/README.md @@ -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`: @@ -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 diff --git a/eglot.el b/eglot.el index 3fd98c7d..d38e2503 100644 --- a/eglot.el +++ b/eglot.el @@ -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