rust-analyzer: specify binary relative to zed workspace dir / allow environment variables #42319
Closed
pavelzw
started this conversation in
Language Support
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
looking at https://zed.dev/docs/languages/rust#binary, it says
I am using rust together with pixi. pixi installs the
rust-analyzerto$ZED_WORKTREE_ROOT/.pixi/envs/default/bin/rust-analyzer. I would like to add this to my project config s.t. every zed user automatically uses the correctrust-analyzerbinary.Currently, zed doesn't allow passing
$ZED_WORKTREE_ROOTto thepath.Something like
{ "lsp": { "rust-analyzer": { "binary": { "path": "$ZED_WORKTREE_ROOT/.pixi/envs/default/bin/rust-analyzer", "arguments": [] } } } }would solve my issue.
VSCode's
.vscode/settings.jsonsupports this as well:{ "rust-analyzer.server.path": "${workspaceFolder}/.pixi/envs/default/bin/rust-analyzer" }Beta Was this translation helpful? Give feedback.
All reactions