summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorThomas Mühlbacher <tmuehlbacher@posteo.net>2024-05-22 21:37:09 +0200
committerThomas Mühlbacher <tmuehlbacher@posteo.net>2024-05-22 22:35:05 +0200
commit683710c06871e4d20f4c1df470d6b94c612a4217 (patch)
treea4d47ce9c76b4c353901619cfcb2289ffeeb2070 /.editorconfig
parent3ac510f6a41feb1b695381fa30869d557c00b822 (diff)
chore(editorconfig): flesh out definitions
so it actually works. Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig22
1 files changed, 21 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig
index 86ba2134..58738895 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,6 +1,26 @@
-indent_style = tab
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
indent_size = 8
+indent_style = tab
+insert_final_newline = true
+max_line_length = 80
+tab_width = 8
+trim_trailing_whitespace = true
+
+[.git/**]
+max_line_length = 72
[*.nix]
indent_style = space
indent_size = 2
+
+[Cargo.toml]
+indent_style = space
+indent_size = 4
+
+[*.rs]
+indent_style = space
+indent_size = 4