all repos — nixfiles @ 2c5665edeb0c5546e5e60d6ccb85731fe06bc83b

System and user configuration, managed by nix and home-manager

replace editor-specific indentation settings with editorconfig

Alan Pearce
commit

2c5665edeb0c5546e5e60d6ccb85731fe06bc83b

parent

d3990a89701ad0cb33a6912ebf8c2698076e0212

1 file changed, 25 insertions(+), 0 deletions(-)

changed files
M user/settings/development/base.nixuser/settings/development/base.nix
@@ -46,6 +46,31 @@ FLY_NO_UPDATE_CHECK = "1";
LIMA_INSTANCE = "nixos"; }; + editorconfig = { + enable = true; + settings = { + "*" = { + charset = "utf-8"; + end_of_line = "lf"; + trim_trailing_whitespace = true; + insert_final_newline = true; + indent_style = "space"; + indent_size = 2; + }; + justfile = { + indent_style = "tab"; + tab_width = 4; + }; + Makefile = { + indent_style = "tab"; + tab_width = 4; + }; + "*.{yaml,yml}" = { + indent_size = 4; + } + }; + }; + home.shellAliases = { er = "direnv reload"; ea = "direnv allow";