# Add ability to specify binary path/args for \`gopls\` \(\#9803\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/157fb98a8b3dd77fc9c444b4d3151115520285fc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 157fb98a8b3dd77fc9c444b4d3151115520285fc

Requested commit: 157fb98a8b3dd77fc9c444b4d3151115520285fc

Commit: 157fb98a8b3dd77fc9c444b4d3151115520285fc

Tree: c1e6e33eedf15547af1af52dd25f389112588930

Author: Thorsten Ball

Committer: GitHub

## Message

````
Add ability to specify binary path/args for `gopls` (#9803)

This uses the language server settings added in #9293 to allow users to
specify the binary path and arguments with which to start up `gopls`.

Example user settings for `gopls`:

```json
{
  "lsp": {
    "gopls": {
      "binary": {
        "path": "/Users/thorstenball/tmp/gopls",
        "arguments": ["-debug=0.0.0.0:8080"]
      },
    }
  }
}
```

Constraints:

* Right now this only allows ABSOLUTE paths.

Release Notes:

- Added ability to specify `gopls` binary `path` (must be absolute) and
`arguments` in user settings. Example: `{"lsp": {"gopls": {"binary":
{"path": "/my/abs/path/gopls", "arguments": ["-debug=0.0.0.0:8080"]
}}}}`
````

## Parents

- [b0409ddd684a640b7b1a16fd9320eccd4d959580](https://git.cafe/gitcafe/zed/commit/b0409ddd684a640b7b1a16fd9320eccd4d959580?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/157fb98a8b3dd77fc9c444b4d3151115520285fc?format=markdown)
