EmmyLuaCodeStyle
EmmyLuaCodeStyle copied to clipboard
Config `continuation_indent` not accepting `0`
trafficstars
I am using CodeStyle as part of LuaLS in vscode Lua (v3.10.6) on windows 10 with no other extensions enabled.
I am wanting continuation_indent.in_expr = 0 to disable this rule, however it reverts to the default of 4.
It is not clear why a value of 0 does not work, and there does not appear to be any other way to disable it.
The same applies to continuation_indent and .in_table and .before_block
Here is the .luarc.json being used. Below is the editor config and lua code being tested:
# see https://github.com/CppCXY/EmmyLuaCodeStyle
[*.lua]
continuation_indent.in_expr = 0
continuation_indent.in_table = 4
continuation_indent.before_block = 4
local function new_something(tbl)
return tbl
end
local foo =
new_something {
bar = 1
}
This image shows how the value has reverted back to the default of 4.
This image shows how setting it to any other value such as
continuation_indent.in_expr = 7 works fine: