Skip to content

Commit d09726b

Browse files
committed
tweak helix config
1 parent cf8a955 commit d09726b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/etc/rust_analyzer_helix.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
# so that r-a's checks don't block user `x` commands and vice-verse.
33
# R-a's build directory is located in `build-rust-analyzer`.
44
#
5-
# To build rustfmt and proc macro server for r-a run the following command:
5+
# To download rustfmt and proc macro server for r-a run the following command
6+
# (proc macro server is downloaded automatically with pretty much any command,
7+
# this specific one also downloads rustfmt):
68
# ```
7-
# x b proc-macro-srv-cli rustfmt --stage 0 --build-dir build-rust-analyzer
9+
# x fmt --check
810
# ```
11+
# (if that doesn't work -- do `x clean` first)
912

1013
[language-server.rust-analyzer.config]
1114
linkedProjects = [
@@ -18,7 +21,6 @@ linkedProjects = [
1821
]
1922

2023
[language-server.rust-analyzer.config.check]
21-
invocationLocation = "root"
2224
invocationStrategy = "once"
2325
overrideCommand = [
2426
"python3",
@@ -31,12 +33,12 @@ overrideCommand = [
3133

3234
[language-server.rust-analyzer.config.rustfmt]
3335
overrideCommand = [
34-
"build-rust-analyzer/host/rustfmt/bin/rustfmt",
36+
"build/host/rustfmt/bin/rustfmt",
3537
"--edition=2024"
3638
]
3739

3840
[language-server.rust-analyzer.config.procMacro]
39-
server = "build-rust-analyzer/host/stage0/libexec/rust-analyzer-proc-macro-srv"
41+
server = "build/host/stage0/libexec/rust-analyzer-proc-macro-srv"
4042
enable = true
4143

4244
[language-server.rust-analyzer.config.rustc]
@@ -50,14 +52,13 @@ RUSTC_BOOTSTRAP = "1"
5052

5153
[language-server.rust-analyzer.config.cargo.buildScripts]
5254
enable = true
53-
invocationLocation = "root"
5455
invocationStrategy = "once"
5556
overrideCommand = [
5657
"python3",
5758
"x.py",
5859
"check",
5960
"--json-output",
61+
"--compile-time-deps",
6062
"--build-dir",
6163
"build-rust-analyzer",
62-
"--compile-time-deps",
6364
]

0 commit comments

Comments
 (0)