about summary refs log tree commit diff
path: root/src/etc/rust_analyzer_helix.toml
diff options
context:
space:
mode:
authorTshepang Mbambo <hopsi@tuta.io>2025-09-22 21:02:37 +0200
committerTshepang Mbambo <hopsi@tuta.io>2025-09-22 21:02:37 +0200
commit24144ff499852b0fab63cf0c93d4c8d8b2fad8ef (patch)
tree2b286731008d9cf39c1b24f5c17ebe776b232445 /src/etc/rust_analyzer_helix.toml
parentce4beebecb77821734079cff47d8af08f9f27f11 (diff)
downloadrust-24144ff499852b0fab63cf0c93d4c8d8b2fad8ef.tar.gz
rust-24144ff499852b0fab63cf0c93d4c8d8b2fad8ef.zip
make rust-analyzer settings use dedicated directory
This avoids rust-analyzer having to wait for a build lock due to ./x
running other commands (and the other way around).
Diffstat (limited to 'src/etc/rust_analyzer_helix.toml')
-rw-r--r--src/etc/rust_analyzer_helix.toml14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/etc/rust_analyzer_helix.toml b/src/etc/rust_analyzer_helix.toml
index 8c1782a1abc..e2de2a374cb 100644
--- a/src/etc/rust_analyzer_helix.toml
+++ b/src/etc/rust_analyzer_helix.toml
@@ -1,10 +1,10 @@
 # This config uses a separate build directory for rust-analyzer,
 # so that r-a's checks don't block user `x` commands and vice-verse.
-# R-a's build directory is located in `build/rust-analyzer`.
+# R-a's build directory is located in `build-rust-analyzer`.
 #
 # To build rustfmt and proc macro server for r-a run the following command:
 # ```
-# x b proc-macro-srv-cli rustfmt --stage 0 --build-dir build/rust-analyzer
+# x b proc-macro-srv-cli rustfmt --stage 0 --build-dir build-rust-analyzer
 # ```
 
 [language-server.rust-analyzer.config]
@@ -26,17 +26,17 @@ overrideCommand = [
     "check",
     "--json-output",
     "--build-dir",
-    "build/rust-analyzer",
+    "build-rust-analyzer",
 ]
 
 [language-server.rust-analyzer.config.rustfmt]
 overrideCommand = [
-    "build/rust-analyzer/host/rustfmt/bin/rustfmt",
+    "build-rust-analyzer/host/rustfmt/bin/rustfmt",
     "--edition=2024"
 ]
 
 [language-server.rust-analyzer.config.procMacro]
-server = "build/rust-analyzer/host/stage0/libexec/rust-analyzer-proc-macro-srv"
+server = "build-rust-analyzer/host/stage0/libexec/rust-analyzer-proc-macro-srv"
 enable = true
 
 [language-server.rust-analyzer.config.rustc]
@@ -58,6 +58,6 @@ overrideCommand = [
     "check",
     "--json-output",
     "--build-dir",
-    "build/rust-analyzer",
-    "--compile-time-deps"
+    "build-rust-analyzer",
+    "--compile-time-deps",
 ]