add rustfmt as external formatter

This commit is contained in:
Joakim Repomaa
2025-03-03 09:02:17 +02:00
parent 6cd354885a
commit 62d0963413

View File

@@ -63,6 +63,15 @@ in
arguments = [ "-q" ];
};
};
Rust = {
formatter.external = {
command = lib.getExe pkgs.rustfmt;
arguments = [
"--edition"
"2018"
];
};
};
};
lsp = with pkgs; {
nixd.binary.path = lib.getExe nixd;