gopls gotcha (n)vim

Feb 06, 22

If you are struggling to get gopls working with (n)vim - you may need to set some environment variables to get the LSP to function:

export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

original fix posted here -> reddit

That is all 🖖