aboutsummaryrefslogtreecommitdiff
path: root/linux/home/.editorconfig
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
committersrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
commit19120d4f9761c67d99ed1ce3da6084b83f5a49c9 (patch)
treef234cad1bdad88114a63c9702144da487024967a /linux/home/.editorconfig
parent5928998af5404ae2be84c6cecc10ebf84bd3f3ed (diff)
downloaddotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.tar.gz
dotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.zip
Linux-specific dotfiles
Diffstat (limited to 'linux/home/.editorconfig')
-rw-r--r--linux/home/.editorconfig76
1 files changed, 76 insertions, 0 deletions
diff --git a/linux/home/.editorconfig b/linux/home/.editorconfig
new file mode 100644
index 0000000..b76ecee
--- /dev/null
+++ b/linux/home/.editorconfig
@@ -0,0 +1,76 @@
+
+root = true
+
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+indent_style = space
+indent_size = 4
+max_line_length = 10000
+
+# Makefile-specific settings
+[Makefile]
+indent_style = tab
+indent_size = 4
+
+# C/C++ source files
+[*.c]
+indent_style = tab
+indent_size = 4
+
+# TypeScript/JavaScript config
+[**.{ts,js}]
+indent_size = 2
+
+# Json config
+[**.json]
+indent_size = 2
+
+# Lua config
+[*.lua]
+indent_size = 2
+tab_width = 2
+# [none/single/double]
+quote_style = double
+# [line break]
+break_all_list_when_line_exceed = false
+auto_collapse_lines = false
+break_before_braces = false
+# [preference]
+ignore_space_after_colon = false
+remove_call_expression_list_finish_comma = false
+end_statement_with_semicolon = keep
+
+# Python config
+[*.py]
+indent_size = 4
+
+# Bash config
+[*.bash]
+indent_size = 4
+
+# Yaml config
+[*.yml]
+indent_size = 2
+
+# Latex config
+[**.tex]
+trim_trailing_whitespace = false
+
+# Markdown config
+[**.md]
+indent_size = 2
+trim_trailing_whitespace = false
+
+# Textfile config
+[**.txt]
+trim_trailing_whitespace = false
+insert_final_newline = false
+
+# Snippets config
+[**.snippets]
+indent_style = tab
+