aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/.editorconfig
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/.editorconfig')
-rw-r--r--.config/nvim/.editorconfig38
1 files changed, 38 insertions, 0 deletions
diff --git a/.config/nvim/.editorconfig b/.config/nvim/.editorconfig
new file mode 100644
index 0000000..86067d4
--- /dev/null
+++ b/.config/nvim/.editorconfig
@@ -0,0 +1,38 @@
+root = true
+
+[**]
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+indent_style = space
+indent_size = 4
+charset = utf-8
+
+# TypeScript/JavaScript config
+[**.{ts,js}]
+indent_size = 2
+
+# Json config
+[**.json]
+indent_size = 2
+
+# Lua config
+[**.lua]
+indent_size = 2
+
+# Latex config
+[**.tex]
+trim_trailing_whitespace = false
+
+# Markdown config
+[**.md]
+trim_trailing_whitespace = false
+
+# Textfile config
+[**.txt]
+trim_trailing_whitespace = false
+insert_final_newline = false
+
+# Snippets config
+[**.snippets]
+indent_style = tab