| 1 | --- |
| 2 | title: "Gopls: Using Zed" |
| 3 | --- |
| 4 | |
| 5 | ## Install `gopls` |
| 6 | |
| 7 | To use `gopls` with [Zed](https://zed.dev/), first |
| 8 | [install the `gopls` executable](../index.md#installation) and ensure that the directory |
| 9 | containing the resulting binary (either `$(go env GOBIN)` or `$(go env |
| 10 | GOPATH)/bin`) is in your `PATH`. |
| 11 | |
| 12 | ## That's it |
| 13 | |
| 14 | Zed has a built-in LSP client and knows to run `gopls` when visiting a |
| 15 | Go source file, so most features work right out of the box. |
| 16 | |
| 17 | Zed does not yet support external `window/showDocument` requests, |
| 18 | so web-based features will not work; |
| 19 | see [Zed issue 24852](https://github.com/zed-industries/zed/discussions/24852). |