diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-04-14 21:43:53 -0700 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-04-14 23:16:11 -0700 |
| commit | d1e82ba37c3dd1998808665971bbee4e1ae028b8 (patch) | |
| tree | af8bb5fc22d6f9b32fb603842c3f46d9fbb4e789 /src/etc/rust_analyzer_eglot.el | |
| parent | 2da29dbe8fe23df1c7c4ab1d8740ca3c32b15526 (diff) | |
| download | rust-d1e82ba37c3dd1998808665971bbee4e1ae028b8.tar.gz rust-d1e82ba37c3dd1998808665971bbee4e1ae028b8.zip | |
Setup editor file associations for non-rs extensions
.gitattributes lists *.fixed, *.pp, and *.mir as file extensions which should be treated as Rust source code. Do the same for VS Code and Zed. This only does syntax highlighting, which is appropriate, as MIR isn't really Rust code. At the same time, consistently order `rust-analyzer.linkedProjects` between editors. For some reason, Eglot didn't include library/Cargo.toml.
Diffstat (limited to 'src/etc/rust_analyzer_eglot.el')
| -rw-r--r-- | src/etc/rust_analyzer_eglot.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/etc/rust_analyzer_eglot.el b/src/etc/rust_analyzer_eglot.el index 6b40371d9af..90bd38aa894 100644 --- a/src/etc/rust_analyzer_eglot.el +++ b/src/etc/rust_analyzer_eglot.el @@ -8,10 +8,11 @@ "check" "--json-output"]) :linkedProjects ["Cargo.toml" - "src/bootstrap/Cargo.toml" - "src/tools/rust-analyzer/Cargo.toml" "compiler/rustc_codegen_cranelift/Cargo.toml" - "compiler/rustc_codegen_gcc/Cargo.toml"] + "compiler/rustc_codegen_gcc/Cargo.toml" + "library/Cargo.toml" + "src/bootstrap/Cargo.toml" + "src/tools/rust-analyzer/Cargo.toml"] :rustfmt ( :overrideCommand ["build/host/rustfmt/bin/rustfmt" "--edition=2021"]) :procMacro ( :server "build/host/stage0/libexec/rust-analyzer-proc-macro-srv" |
