Skip to content

Commit e90cdad

Browse files
committed
Add lua formatter
1 parent 6f3feab commit e90cdad

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.lua-format

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
column_limit: &1 120
2+
indent_width: 1
3+
use_tab: true
4+
tab_width: 4
5+
continuation_indent_width: 4
6+
spaces_before_call: 0
7+
keep_simple_control_block_one_line: false
8+
keep_simple_function_one_line: false
9+
align_args: false
10+
break_after_functioncall_lp: false
11+
break_before_functioncall_rp: false
12+
align_parameter: false
13+
chop_down_parameter: false
14+
break_after_functiondef_lp: false
15+
break_before_functiondef_rp: true
16+
align_table_field: false
17+
break_after_table_lb: true
18+
break_before_table_rb: true
19+
chop_down_table: false
20+
chop_down_kv_table: true
21+
table_sep: ","
22+
extra_sep_at_table_end: false
23+
column_table_limit: *1
24+
break_after_operator: true
25+
double_quote_to_single_quote: false
26+
single_quote_to_double_quote: true

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"sumneko.lua",
77
"davidanson.vscode-markdownlint",
88
"editorconfig.editorconfig",
9-
"lextudio.restructuredtext"
9+
"lextudio.restructuredtext",
10+
"koihik.vscode-lua-format"
1011
]
1112
}

0 commit comments

Comments
 (0)