nix/user/common/editorconfig/default.nix

26 lines
366 B
Nix
Raw Normal View History

2024-04-06 03:03:58 +03:00
{ util, ... }: {
config = util.trimTabs ''
root = true
[*]
end_of_line = lf
charset = utf-8
indent_style = tab
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[Makefile]
indent_size = 2
[*.{nix,js}]
indent_size = 2
[*.{lua,kt,kts,rs,py}]
indent_size = 4
[*.{sh,md}]
indent_size = 8
'';
}