flake: add formatter

This commit is contained in:
Guanran Wang 2024-02-21 10:55:06 +08:00
parent 49c8a13409
commit 9656a169f5
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -16,6 +16,7 @@
cargo
];
in {
### nix {run,shell,build}
packages.default =
pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped
(pkgs.neovimUtils.makeNeovimConfig {
@ -26,6 +27,10 @@
}
// {wrapperArgs = ["--prefix" "PATH" ":" "${lib.makeBinPath runtimeDeps}"];});
### nix fmt
formatter = inputs.nixpkgs.legacyPackages.${system}.alejandra;
### nix develop
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
stylua