style: update stylua.toml and .editorconfig

Made stylua.toml use two spaces as indentation since that seems to be
the most common convention in lua. Rest of the settings are kept in
Stylua defaults but made explicit.

Also updated .editorconfig to match config in stylua.toml.
This commit is contained in:
Oula Kuuva
2023-03-21 08:36:08 +02:00
committed by okuuva
parent 57cdc6f0d1
commit 14bc188b5e
2 changed files with 9 additions and 5 deletions

View File

@@ -4,14 +4,13 @@
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = tab
indent_size = 4
indent_style = space
indent_size = 2
[*.txt]
indent_style = tab

View File

@@ -1,5 +1,10 @@
column_width = 120
line_endings = "Unix"
indent_type = "Tabs"
indent_width = 4
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferDouble"
call_parentheses = "Always"
collapse_simple_statement = "Never"
[sort_requires]
enabled = false