Add alejandra as formatter to add templates

This commit is contained in:
Sam W 2022-06-19 15:23:36 +01:00
parent 06ffebaddc
commit 7f481e1658
3 changed files with 10 additions and 8 deletions

View File

@ -10,14 +10,14 @@
utils,
devshell,
}:
utils.lib.eachDefaultSystem (system: {
devShells.default = let
utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [devshell.overlay];
};
in
pkgs.devshell.mkShell {packages = with pkgs; [];};
in {
devShells.default = pkgs.devshell.mkShell {packages = with pkgs; [];};
formatter = pkgs.alejandra;
});
}

View File

@ -34,5 +34,6 @@
devShells.default =
pkgs.devshell.mkShell {packages = with pkgs; [go gopls];};
formatter = pkgs.alejandra;
});
}

View File

@ -45,5 +45,6 @@
pkgs.devshell.mkShell {
packages = with pkgs; [(rust.override {extensions = ["rls"];})];
};
formatter = pkgs.alejandra;
});
}