mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
29 lines
529 B
Nix
29 lines
529 B
Nix
{inputs, ...}: {
|
|
imports = [
|
|
inputs.pre-commit-hooks.flakeModule
|
|
];
|
|
|
|
perSystem = {
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
devShells.default = pkgs.mkShellNoCC {
|
|
shellHook = config.pre-commit.installationScript;
|
|
};
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
pre-commit = {
|
|
settings.hooks = {
|
|
alejandra.enable = true;
|
|
statix = {
|
|
enable = true;
|
|
excludes = [
|
|
"plugins/lsp/language-servers/rust-analyzer-config.nix"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|