vim-lua icon indicating copy to clipboard operation
vim-lua copied to clipboard

Indentation issue with table literal function arguments

Open Janfel opened this issue 3 years ago • 0 comments

Hello, I have noticed an issue with the indentation of table literals as function arguments, when the braces and parentheses are combined like below.

Expected Indentation

do
  foo()
  somefunction(arg1, arg2, {
    key1 = val1, key2 = val2,
  })
  otherfunction({
    key3 = val3, key4 = val4,
  })
  bar()
end

Actual Indentation

do
  foo()
  somefunction(arg1, arg2, {
      key1 = val1, key2 = val2,
    })
  otherfunction({
      key3 = val3, key4 = val4,
    })
  bar()
end

Janfel avatar Jun 01 '22 19:06 Janfel