From dcaf6a09b2d3a100490da7432b9456c9f14ba99b Mon Sep 17 00:00:00 2001 From: srdusr Date: Fri, 18 Aug 2023 22:10:26 +0200 Subject: More formatting options for lua --- .editorconfig | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to '.editorconfig') diff --git a/.editorconfig b/.editorconfig index 94f45d5..1a20136 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,7 +7,7 @@ end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true indent_style = space -#indent_size = 4 +indent_size = 4 max_line_length = 10000 # TypeScript/JavaScript config @@ -19,8 +19,20 @@ indent_size = 2 indent_size = 2 # Lua config -[**.lua] +[*.lua] indent_size = 2 +tab_width = 2 +# none/single/double +quote_style = single +# [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] -- cgit v1.2.3