I want disable gopls tools .
vim-go: Features that rely on gopls will not work correctly in a null module.
when I use vim open a .go file. I'm spend very far time.
I want disable gopls, because I living China and can't use the gopls tools.
I can't connect Golang language server.
last version
vimrc you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):vimrc
:version):Vim version 8.0
go version):Golang 1.12
Windwos or Linux Output:
Can you see http://golang.org/x/tools?
As another point to disable gopls, right now gopls doesn't support cgo.
@sober-wang: Living in China should not be a problem for using gopls - the gopls language server runs locally on your machine, so it does not need to connect to any remote servers. Additionally, the latest version of gopls does work in a null module.
vim-go relies on gopls for many features and we do not have plans to disable it.
The latest master revision of vim-go no longer warns about null modules, but it's a good idea to use modules or else put your project in $GOPATH/src anyway.
Thank for you.
I was misunderstand $GOPATH in last time .
My co-workers is help me clarify my problem.