From 8752f3625ea72563784d3c57f3aeaee682786b86 Mon Sep 17 00:00:00 2001 From: Evgeni Kolev Date: Wed, 15 Aug 2018 22:56:33 +0300 Subject: [PATCH] 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 6f367611..0bd51256 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