-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added rust-analyzer instructions for Helix
- Loading branch information
1 parent
bf71d65
commit 35eb2da
Showing
3 changed files
with
91 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[language-server.rust-analyzer.config.rustc] | ||
source = "discover" | ||
|
||
[language-server.rust-analyzer.config] | ||
linkedProjects = [ | ||
"Cargo.toml", | ||
"cargo-miri/Cargo.toml", | ||
"miri-script/Cargo.toml", | ||
] | ||
|
||
[language-server.rust-analyzer.config.check] | ||
invocationLocation = "root" | ||
invocationStrategy = "once" | ||
overrideCommand = [ | ||
"env", | ||
"MIRI_AUTO_OPS=no", | ||
"./miri", | ||
"clippy", # make this `check` when working with a locally built rustc | ||
"--message-format=json", | ||
] | ||
|
||
# Contrary to what the name suggests, this also affects proc macros. | ||
[language-server.rust-analyzer.config.buildScripts] | ||
invocationLocation = "root" | ||
invocationStrategy = "once" | ||
overrideCommand = [ | ||
"env", | ||
"MIRI_AUTO_OPS=no", | ||
"./miri", | ||
"check", | ||
"--message-format=json", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"rust-analyzer.rustc.source": "discover", | ||
"rust-analyzer.linkedProjects": [ | ||
"Cargo.toml", | ||
"cargo-miri/Cargo.toml", | ||
"miri-script/Cargo.toml", | ||
], | ||
"rust-analyzer.check.invocationLocation": "root", | ||
"rust-analyzer.check.invocationStrategy": "once", | ||
"rust-analyzer.check.overrideCommand": [ | ||
"env", | ||
"MIRI_AUTO_OPS=no", | ||
"./miri", | ||
"clippy", // make this `check` when working with a locally built rustc | ||
"--message-format=json", | ||
], | ||
// Contrary to what the name suggests, this also affects proc macros. | ||
"rust-analyzer.cargo.buildScripts.invocationLocation": "root", | ||
"rust-analyzer.cargo.buildScripts.invocationStrategy": "once", | ||
"rust-analyzer.cargo.buildScripts.overrideCommand": [ | ||
"env", | ||
"MIRI_AUTO_OPS=no", | ||
"./miri", | ||
"check", | ||
"--message-format=json", | ||
], | ||
} |