Explicitly specify extensions to include rust-analysis
And change VSCode extension
This commit is contained in:
parent
afec3ca7c8
commit
b767bad490
2 changed files with 21 additions and 5 deletions
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"matklad.rust-analyzer"
|
||||||
|
]
|
||||||
|
}
|
17
flake.nix
17
flake.nix
|
@ -16,11 +16,22 @@
|
||||||
(system:
|
(system:
|
||||||
let pkgs = import nixpkgs {
|
let pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [rust-overlay.overlay ];
|
overlays = [ rust-overlay.overlay ];
|
||||||
}; in {
|
}; in
|
||||||
|
{
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgs.rust-bin.stable.latest.default
|
(pkgs.rust-bin.stable.latest.default.override {
|
||||||
|
extensions = [
|
||||||
|
"rust-src"
|
||||||
|
"cargo"
|
||||||
|
"rustc"
|
||||||
|
"rls"
|
||||||
|
"rust-analysis"
|
||||||
|
"rustfmt"
|
||||||
|
"clippy"
|
||||||
|
];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue