mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
always use nightly rust-analyzer
to avoid depending on the current toolchain
This commit is contained in:
parent
f3dad89d72
commit
405b4b7330
1 changed files with 6 additions and 1 deletions
|
|
@ -15,7 +15,12 @@
|
|||
userSettings = {
|
||||
# Note: In settings.json, `.` in a key is not equivalent to a nested object property.
|
||||
# Language-specific
|
||||
"rust-analyzer.server.path" = lib.getExe' pkgs.rustup "rust-analyzer";
|
||||
"rust-analyzer.server.path" = lib.getExe (pkgs.writeShellApplication {
|
||||
name = "rust-analyzer-nightly-wrapper";
|
||||
text = ''
|
||||
exec ${lib.getExe' pkgs.rustup "rust-analyzer"} +nightly
|
||||
'';
|
||||
});
|
||||
"[nix]"."editor.formatOnSave" = true;
|
||||
"[nix]"."editor.defaultFormatter" = "jnoortheen.nix-ide";
|
||||
"nix.enableLanguageServer" = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue