nix formatting: use nixfmt
This commit is contained in:
parent
869d1c2942
commit
6ffb11e473
|
@ -134,7 +134,7 @@ let
|
|||
nixHelpers = [
|
||||
lorri
|
||||
nixpkgs-review
|
||||
nixpkgs-fmt
|
||||
nixfmt
|
||||
nix-top
|
||||
statix
|
||||
];
|
||||
|
@ -324,7 +324,6 @@ in
|
|||
eamodio.gitlens
|
||||
jnoortheen.nix-ide
|
||||
mkhl.direnv
|
||||
kamadorueda.alejandra
|
||||
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||
{
|
||||
name = "Sync-Rsync";
|
||||
|
@ -360,12 +359,12 @@ in
|
|||
"[nix]" = {
|
||||
"editor.insertSpaces" = true;
|
||||
"editor.tabSize" = 2;
|
||||
"editor.defaultFormatter" = "kamadorueda.alejandra";
|
||||
# for now, disable automatic formatting to prevent disruption of existing code bases
|
||||
"editor.formatOnPaste" = false;
|
||||
"editor.formatOnSave" = false;
|
||||
"editor.formatOnType" = false;
|
||||
};
|
||||
"nix.formatterPath" = "${pkgs.nixfmt}/bin/nixfmt";
|
||||
"editor.fontSize" = 13;
|
||||
"editor.fontWeight" = "normal";
|
||||
"git.detectSubmodulesLimit" = 30;
|
||||
|
|
Loading…
Reference in a new issue