mirror of https://github.com/golang/go.git
gopls/doc: how to request a particular gopls w/ sublime text
I needed to do this to get a generics-capable version of gopls, because sublime LSP downloads and installs its own. Other people may also need to do this, now or in the future, and it was a pain to figure out the exact incantation. Change-Id: I360b7ee9438a2c6588f55745aa1d6f3a47ddd2fc Reviewed-on: https://go-review.googlesource.com/c/tools/+/382794 Trust: David Chase <drchase@google.com> Run-TryBot: David Chase <drchase@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
parent
cf66aec62b
commit
d55d8929fe
|
|
@ -56,6 +56,10 @@ LSP and gopls settings can also be adjusted on a per-project basis to override g
|
|||
"settings": {
|
||||
"LSP": {
|
||||
"gopls": {
|
||||
// To use a specific version of gopls with Sublime Text LSP (e.g., to try new features in development)
|
||||
"command": [
|
||||
"/path/to/your/go/bin/gopls"
|
||||
],
|
||||
"env": {
|
||||
"PATH": "/path/to/your/go-dev/bin:/path/to/your/go/bin",
|
||||
"GOPATH": "",
|
||||
|
|
|
|||
Loading…
Reference in New Issue