mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
flake-modules: Use nixfmt instead of alejandra
This commit is contained in:
parent
c05fba47c7
commit
c6281260dc
1 changed files with 10 additions and 11 deletions
|
@ -1,20 +1,19 @@
|
||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
imports = [
|
imports = [ inputs.pre-commit-hooks.flakeModule ./devshell.nix ];
|
||||||
inputs.pre-commit-hooks.flakeModule
|
|
||||||
./devshell.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
perSystem = { pkgs, ... }: {
|
perSystem = { pkgs, ... }: {
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
|
|
||||||
pre-commit = {
|
pre-commit = {
|
||||||
settings.hooks = {
|
settings.hooks = {
|
||||||
alejandra.enable = true;
|
nixfmt = {
|
||||||
|
package = pkgs.nixfmt-rfc-style;
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
statix = {
|
statix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
excludes = [
|
excludes =
|
||||||
"plugins/lsp/language-servers/rust-analyzer-config.nix"
|
[ "plugins/lsp/language-servers/rust-analyzer-config.nix" ];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
typos.enable = true;
|
typos.enable = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue