summary refs log tree commit diff stats
path: root/.editorconfig
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-10 15:47:06 +0200
committerSoispha <soispha@vhack.eu>2023-07-19 15:54:02 +0200
commit96aea471ced9b223856ab34011b3bf3b320fb7d2 (patch)
treef62707e2ececa6dc858c77cae5553e2bd53cd7e3 /.editorconfig
parentChore(system/secrets): Add sils' public key (diff)
downloadnixos-server-96aea471ced9b223856ab34011b3bf3b320fb7d2.tar.gz
nixos-server-96aea471ced9b223856ab34011b3bf3b320fb7d2.zip
Feat(.editorconfig): Add the configuration for all files
This sets some formatting option based on the file. In comparison to
the vim lines, this should be supported by more editors.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..8cfc43a
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,16 @@
+# EditorConfig is awesome: https://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+
+# Matches multiple files with brace expansion notation
+# Set default charset
+[*.{nix}]
+charset = utf-8
+indent_style = space
+indent_size = 2