]> git.eshelyaron.com Git - emacs.git/commitdiff
Add go-langserver ()
authorEvgeni Kolev <evgenysw@gmail.com>
Sat, 18 Aug 2018 11:33:13 +0000 (14:33 +0300)
committerJoão Távora <joaotavora@gmail.com>
Sat, 18 Aug 2018 11:33:13 +0000 (12:33 +0100)
Copyright-paperwork-exempt: yes

* README.md (Installation and usage): Add go-langserver.
* eglot.el (eglot-server-programs): Add go-langserver.

GitHub-reference: https://github.com/joaotavora/eglot/issues/74

lisp/progmodes/eglot.el

index 3fd98c7d80093e422bca0900960d7a550d3b006c..d38e25032825b080b0039caf37e36cf4de67cc9a 100644 (file)
@@ -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