vim-lua
vim-lua copied to clipboard
Indentation issue with table literal function arguments
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