1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-12 11:46:57 +00:00
home-manager/tests/modules/misc/editorconfig/editorconfig-simple-config.nix
2025-02-21 23:20:07 -06:00

26 lines
558 B
Nix

{
editorconfig = {
enable = true;
settings = {
"*" = {
charset = "utf-8";
end_of_line = "lf";
trim_trailing_whitespace = true;
insert_final_newline = true;
max_line_width = 78;
indent_style = "space";
};
"*.md" = {
indent_size = "unset";
trim_trailing_whitespace = false;
};
};
};
nmt.script = ''
assertFileExists home-files/.editorconfig
assertFileContent home-files/.editorconfig ${
./editorconfig-simple-config-expected
}
'';
}