Gopls: Using Zed
Install gopls
To use gopls with Zed, first
install the gopls executable and ensure that the directory
containing the resulting binary (either $(go env GOBIN) or $(go env GOPATH)/bin) is in your PATH.
That’s it
Zed has a built-in LSP client and knows to run gopls when visiting a
Go source file, so most features work right out of the box.
Zed does not yet support external window/showDocument requests,
so web-based features will not work;
see Zed issue 24852.
The source files for this documentation can be found beneath golang.org/x/tools/gopls/doc.