add rustfmt as external formatter
This commit is contained in:
@@ -63,6 +63,15 @@ in
|
|||||||
arguments = [ "-q" ];
|
arguments = [ "-q" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Rust = {
|
||||||
|
formatter.external = {
|
||||||
|
command = lib.getExe pkgs.rustfmt;
|
||||||
|
arguments = [
|
||||||
|
"--edition"
|
||||||
|
"2018"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
lsp = with pkgs; {
|
lsp = with pkgs; {
|
||||||
nixd.binary.path = lib.getExe nixd;
|
nixd.binary.path = lib.getExe nixd;
|
||||||
|
|||||||
Reference in New Issue
Block a user