fix(flake): fix formatter configuration
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
40
flake.nix
40
flake.nix
@ -75,28 +75,26 @@
|
|||||||
formatter = genSystems (
|
formatter = genSystems (
|
||||||
pkgs:
|
pkgs:
|
||||||
pkgs.treefmt.withConfig {
|
pkgs.treefmt.withConfig {
|
||||||
settings = [
|
settings = {
|
||||||
{
|
formatter = {
|
||||||
formatter = {
|
clang-format = {
|
||||||
clang-format = {
|
options = [ "-i" ];
|
||||||
options = [ "-i" ];
|
command = lib.getExe' pkgs.clang-tools "clang-format";
|
||||||
command = lib.getExe' pkgs.clang-tools "clang-format";
|
excludes = [ ];
|
||||||
excludes = [ ];
|
includes = [
|
||||||
includes = [
|
"*.c"
|
||||||
"*.c"
|
"*.cpp"
|
||||||
"*.cpp"
|
"*.h"
|
||||||
"*.h"
|
"*.hpp"
|
||||||
"*.hpp"
|
];
|
||||||
];
|
|
||||||
};
|
|
||||||
nixfmt = {
|
|
||||||
command = lib.getExe pkgs.nixfmt-rfc-style;
|
|
||||||
includes = [ "*.nix" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
tree-root-file = ".git/index";
|
nixfmt = {
|
||||||
}
|
command = lib.getExe pkgs.nixfmt-rfc-style;
|
||||||
];
|
includes = [ "*.nix" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
tree-root-file = ".git/index";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user