mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
22 lines
417 B
Nix
22 lines
417 B
Nix
{inputs, ...}: {
|
|
imports = [
|
|
inputs.pre-commit-hooks.flakeModule
|
|
./devshell.nix
|
|
];
|
|
|
|
perSystem = {pkgs, ...}: {
|
|
formatter = pkgs.alejandra;
|
|
|
|
pre-commit = {
|
|
settings.hooks = {
|
|
alejandra.enable = true;
|
|
statix = {
|
|
enable = true;
|
|
excludes = [
|
|
"plugins/lsp/language-servers/rust-analyzer-config.nix"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|