aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-07-07 18:30:15 +0200
committerKim Alvefur <zash@zash.se>2020-07-07 18:30:15 +0200
commit39c96672e2540c79ee03fea7bb82a54fac3f7cf2 (patch)
tree9393ca28ac0aeb2c034c297d66ac8b575540872a
parent227b0c9733a13c498e47eb83ae4c0746727ada49 (diff)
downloadprosody-39c96672e2540c79ee03fea7bb82a54fac3f7cf2.tar.gz
prosody-39c96672e2540c79ee03fea7bb82a54fac3f7cf2.zip
lua-format: Check in defaults
By starting with the built-in defaults, we get a nice history of differences from those as we figure out what settings suit us Sorted make comparisons easier.
-rw-r--r--.lua-format26
1 files changed, 26 insertions, 0 deletions
diff --git a/.lua-format b/.lua-format
new file mode 100644
index 00000000..31f7e54b
--- /dev/null
+++ b/.lua-format
@@ -0,0 +1,26 @@
+align_args: true
+align_parameter: true
+align_table_field: true
+break_after_functioncall_lp: false
+break_after_functiondef_lp: false
+break_after_operator: true
+break_after_table_lb: true
+break_before_functioncall_rp: false
+break_before_functiondef_rp: false
+break_before_table_rb: true
+chop_down_kv_table: true
+chop_down_parameter: false
+chop_down_table: false
+column_limit: 80
+column_table_limit: 80
+continuation_indent_width: 4
+double_quote_to_single_quote: false
+extra_sep_at_table_end: false
+indent_width: 4
+keep_simple_control_block_one_line: true
+keep_simple_function_one_line: true
+single_quote_to_double_quote: false
+spaces_before_call: 1
+table_sep: ','
+tab_width: 4
+use_tab: false