2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-11-04 04:37:29 +03:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
file = (pkgs.formats.iniWithGlobalSection { }).generate "EditorconfigConfig" {
|
|
|
|
globalSection = {
|
|
|
|
root = true;
|
|
|
|
};
|
|
|
|
sections = {
|
|
|
|
"*" = {
|
|
|
|
charset = "utf-8";
|
|
|
|
end_of_line = "lf";
|
|
|
|
indent_size = 8;
|
|
|
|
indent_style = "tab";
|
|
|
|
insert_final_newline = false;
|
|
|
|
trim_trailing_whitespace = true;
|
|
|
|
};
|
|
|
|
"*.nix" = {
|
|
|
|
indent_size = 2;
|
|
|
|
};
|
|
|
|
"*.{lua,kt,kts,rs,py}" = {
|
|
|
|
indent_size = 4;
|
|
|
|
};
|
2024-11-12 12:53:50 +03:00
|
|
|
"*.md" = {
|
|
|
|
trim_trailing_whitespace = false;
|
|
|
|
};
|
2024-11-04 04:37:29 +03:00
|
|
|
};
|
|
|
|
};
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|