Editorconfig: switch to module

This commit is contained in:
Filippo Berto 2023-02-25 14:38:45 +01:00
parent 6c9073cdc0
commit 4dc8728707
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -1,19 +1,19 @@
{
home.file.".editorconfig".text = ''
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
# max_line_length = 120
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
[*.py]
indent_size = 4
'';
editorconfig = {
enable = true;
settings = {
"*" = {
charset = "utf-8";
end_of_line = "lf";
indent_size = "2";
# max_line_width = "120";
indent_style = "space";
trim_trailing_whitespace = "true";
insert_final_newline = "true";
};
"*.py" = {
indent_size = 4;
};
};
};
}