Skip to content

How to choose target for the workspace's rust analyzer #12799

Answered by theridane
KySpace asked this question in Q&A
Discussion options

You must be logged in to vote

Helix supports per-workspace overrides, just place the relevant config into a directory named .helix in the root of the workspace (so next to Cargo.toml etc).

In your case, you'd have a file .helix/languages.toml with:

[language-server.rust-analyzer.config]
cargo.target = "wasm32-unknown-unknown"
check.allTargets = false

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KySpace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #12798 on February 06, 2025 15:31.