From 87973384a07ef22c9a709e95cfd1ae517951d2f0 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Wed, 6 Oct 2021 00:24:05 +0200 Subject: [PATCH] add: luaformatter --- .lua-format | 30 ++++++++++++++++++++++++++++++ .vscode/settings.json | 9 +++++++++ 2 files changed, 39 insertions(+) create mode 100644 .lua-format create mode 100644 .vscode/settings.json diff --git a/.lua-format b/.lua-format new file mode 100644 index 0000000..566050b --- /dev/null +++ b/.lua-format @@ -0,0 +1,30 @@ +column_limit: 80 +indent_width: 4 +use_tab: false +continuation_indent_width: 4 +spaces_before_call: 1 +keep_simple_control_block_one_line: false +keep_simple_function_one_line: false +align_args: true +break_after_functioncall_lp: false +break_before_functioncall_rp: false +spaces_inside_functioncall_parens: false +spaces_inside_functiondef_parens: false +align_parameter: true +chop_down_parameter: true +break_after_functiondef_lp: false +break_before_functiondef_rp: false +align_table_field: true +break_after_table_lb: true +break_before_table_rb: true +chop_down_table: true +chop_down_kv_table: true +table_sep: "," +column_table_limit: 80 +extra_sep_at_table_end: true +spaces_inside_table_braces: true +break_after_operator: true +double_quote_to_single_quote: false +single_quote_to_double_quote: true +spaces_around_equals_in_field: true +line_breaks_after_function_body: 1 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..ea79314 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "editor.formatOnSave": true, + "editor.formatOnPaste": true, + "[markdown]": { + "editor.wordWrap": "on", + "editor.renderWhitespace": "all", + "editor.acceptSuggestionOnEnter": "off" + } +}