mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
27 lines
538 B
Nix
27 lines
538 B
Nix
{ inputs, ... }:
|
|
{
|
|
imports = [
|
|
inputs.pre-commit-hooks.flakeModule
|
|
./devshell.nix
|
|
];
|
|
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
formatter = pkgs.nixfmt-rfc-style;
|
|
|
|
pre-commit = {
|
|
settings.hooks = {
|
|
nixfmt = {
|
|
package = pkgs.nixfmt-rfc-style;
|
|
enable = true;
|
|
};
|
|
statix = {
|
|
enable = true;
|
|
excludes = [ "plugins/lsp/language-servers/rust-analyzer-config.nix" ];
|
|
};
|
|
typos.enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|