From af005dce39dedc7c14914957211d82d3aa06bc8e Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Fri, 14 Mar 2025 21:44:19 +0800 Subject: [PATCH] feat: add editorconfig to home-manager --- users/modules/sh.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/users/modules/sh.nix b/users/modules/sh.nix index 1df2b70..49e2135 100644 --- a/users/modules/sh.nix +++ b/users/modules/sh.nix @@ -13,10 +13,20 @@ ./programs/zsh.nix ./scripts ]; - home.shell.enableShellIntegration = true; home.shellAliases = { gs = "git status"; ai = "aichat -r %shell% -e"; }; + editorconfig = { + enable = true; + settings = { + "*" = { + indent_style = "space"; + indent_size = 2; + trim_trailing_whitespace = true; + insert_final_newline = false; + }; + }; + }; }