From 877f577bab77e5779821bbc04e58479ab1e2f067 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Mon, 26 Aug 2019 12:55:44 +0200 Subject: [PATCH] [go] Update doc on LSP setup. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `gopls` is Google’s upcoming Go language server; the other implementation mentioned in the `lsp-mode` doc¹ has been discontinued². So, I've added the recommended procedure³ to install `gopls`. ¹: https://github.com/emacs-lsp/lsp-mode/ ²: https://github.com/saibing/bingo ³: https://github.com/golang/go/wiki/gopls --- layers/+lang/go/README.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layers/+lang/go/README.org b/layers/+lang/go/README.org index b1dd964fe..40e6b4ac5 100644 --- a/layers/+lang/go/README.org +++ b/layers/+lang/go/README.org @@ -117,7 +117,14 @@ To enable the LSP backend set the layer variable =go-backend=: #+END_SRC You also need to install the Go Language Server. -Consult the installation command for the desired language server found at [[https://www.github.com/emacs-lsp/lsp-mode/][lsp-mode]] for instructions. + +This is the [[https://github.com/golang/go/wiki/gopls][recommended procedure]] to install =gopls=: + +#+BEGIN_SRC sh + GO111MODULE=on go get -v golang.org/x/tools/gopls@latest +#+END_SRC + +You can check [[https://www.github.com/emacs-lsp/lsp-mode/][lsp-mode]] for the gory details. Backend can be chosen on a per project basis using directory local variables (files named =.dir-locals.el= at the root of a project), an example to use the