LuaFormatter icon indicating copy to clipboard operation
LuaFormatter copied to clipboard

Option `space_inside_table_braces` should only apply to single-lines

Open ronvoluted opened this issue 1 year ago • 0 comments

spaces_inside_table_braces

type: bool, default: false

Inserts spaces inside the braces in a table constructor.

Current behaviour:

-- original
x = {1, 2, 3}

point = {
  x = 1,
  y = 2
}

-- transformed
x = { 1, 2, 3 }

point = {
  x = 1,
  y = 2
 } -- extra space

Expected behaviour:

-- transformed
x = { 1, 2, 3 }

point = {
  x = 1,
  y = 2
}

ronvoluted avatar Apr 08 '23 09:04 ronvoluted