1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2026-01-26 19:56:29 +01:00

fix(rust): include rust-analyzer in toolchain

This commit is contained in:
Ryan Cao 2024-09-20 13:02:20 +08:00
parent 2305bad15f
commit 2756c5af57
Signed by: ryanccn
GPG key ID: 48C96B2057D71CB1
3 changed files with 25 additions and 7 deletions

View file

@ -173,7 +173,8 @@ in
"[rust]"."editor.tabSize" = 4; "[rust]"."editor.tabSize" = 4;
"[rust]"."editor.defaultFormatter" = "rust-lang.rust-analyzer"; "[rust]"."editor.defaultFormatter" = "rust-lang.rust-analyzer";
"rust-analyzer.server.path" = "${pkgs.rust-analyzer}/bin/rust-analyzer";
"rust-analyzer.server.path" = "rust-analyzer";
"rust-analyzer.check.command" = "clippy"; "rust-analyzer.check.command" = "clippy";
"rust-analyzer.showUnlinkedFileNotification" = false; "rust-analyzer.showUnlinkedFileNotification" = false;

View file

@ -6,6 +6,9 @@ _: {
ignores = [ ignores = [
".DS_Store" ".DS_Store"
".direnv/" ".direnv/"
".vscode/"
".zed/"
".idea/"
]; ];
userName = "Ryan Cao"; userName = "Ryan Cao";
@ -14,18 +17,26 @@ _: {
extraConfig = { extraConfig = {
init.defaultBranch = "main"; init.defaultBranch = "main";
commit.gpgsign = true; commit.gpgSign = true;
gpg.format = "openpgp"; gpg.format = "openpgp";
user.signingkey = "48C96B2057D71CB1"; user.signingKey = "48C96B2057D71CB1";
log.date = "iso"; log.date = "iso";
merge.conflictstyle = "zdiff3"; merge.conflictStyle = "zdiff3";
diff.algorithm = "histogram"; diff.algorithm = "histogram";
transfer.fsckobjects = true; transfer.fsckObjects = true;
fetch.fsckobjects = true; fetch.fsckObjects = true;
receive.fsckObjects = true; receive.fsckObjects = true;
blame.ignoreRevsFile = ".git-blame-ignore-revs";
fetch.prune = true;
fetch.pruneTags = true;
branch.sort = "-committerdate";
tag.sort = "taggerdate";
push.autoSetupRemote = true; push.autoSetupRemote = true;
}; };
}; };

View file

@ -17,7 +17,13 @@ in
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
(rust-bin.stable.latest.default.override { extensions = [ "llvm-tools-preview" ]; }) (rust-bin.stable.latest.default.override {
extensions = [
"rust-src"
"rust-analyzer"
"llvm-tools-preview"
];
})
cargo-audit cargo-audit
cargo-bloat cargo-bloat