summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/development/base.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/user/settings/development/base.nix b/user/settings/development/base.nix
index cd5755f6..96c8a42f 100644
--- a/user/settings/development/base.nix
+++ b/user/settings/development/base.nix
@@ -46,6 +46,31 @@
     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";