Add alejandra as formatter to add templates
This commit is contained in:
parent
06ffebaddc
commit
7f481e1658
|
@ -10,14 +10,14 @@
|
||||||
utils,
|
utils,
|
||||||
devshell,
|
devshell,
|
||||||
}:
|
}:
|
||||||
utils.lib.eachDefaultSystem (system: {
|
utils.lib.eachDefaultSystem (system: let
|
||||||
devShells.default = let
|
pkgs = import nixpkgs {
|
||||||
pkgs = import nixpkgs {
|
inherit system;
|
||||||
inherit system;
|
|
||||||
|
|
||||||
overlays = [devshell.overlay];
|
overlays = [devshell.overlay];
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
pkgs.devshell.mkShell {packages = with pkgs; [];};
|
devShells.default = pkgs.devshell.mkShell {packages = with pkgs; [];};
|
||||||
|
formatter = pkgs.alejandra;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,5 +34,6 @@
|
||||||
|
|
||||||
devShells.default =
|
devShells.default =
|
||||||
pkgs.devshell.mkShell {packages = with pkgs; [go gopls];};
|
pkgs.devshell.mkShell {packages = with pkgs; [go gopls];};
|
||||||
|
formatter = pkgs.alejandra;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,5 +45,6 @@
|
||||||
pkgs.devshell.mkShell {
|
pkgs.devshell.mkShell {
|
||||||
packages = with pkgs; [(rust.override {extensions = ["rls"];})];
|
packages = with pkgs; [(rust.override {extensions = ["rls"];})];
|
||||||
};
|
};
|
||||||
|
formatter = pkgs.alejandra;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue