# Add ability to specify binary path/args for rust-analyzer \(\#9293\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a56a260778748c1309c5a30d37a917f10e56c39d

Requested commit: a56a260778748c1309c5a30d37a917f10e56c39d

Commit: a56a260778748c1309c5a30d37a917f10e56c39d

Tree: a8163e2c049405f825cd941857ea4df2fbeea37e

Author: Thorsten Ball

Committer: GitHub

## Message

````
Add ability to specify binary path/args for rust-analyzer (#9293)

This fixes #9292 by adding a section to the language server settings
that allows users to specify the binary path and arguments with which to
start up a language server.

Example user settings for `rust-analyzer`:

```json
{
  "lsp": {
    "rust-analyzer": {
      "binary": {
        "path": "/Users/thorstenball/tmp/rust-analyzer-aarch64-apple-darwin",
        "arguments": ["--no-log-buffering"]
      }
    }
  }
}
```

Constraints:

* Right now this only allows ABSOLUTE paths.
* This is only used by `rust-analyzer` integration right now, but the
setting can be used for other language servers. We just need to update
the adapters to also respect that setting.



Release Notes:

- Added ability to specify `rust-analyzer` binary `path` (must be
absolute) and `arguments` in user settings. Example: `{"lsp":
{"rust-analyzer": {"binary": {"path": "/my/abs/path/rust-analyzer",
"arguments": ["--no-log-buffering"] }}}}`
([#9292](https://github.com/zed-industries/zed/issues/9292)).

Co-authored-by: Ricard Mallafre <rikitzzz@gmail.com>
````

## Parents

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

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