You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now everything is formatted ad-hoc by lua-mode at 3-column indentation. But until recently I didn't know of any Lua code formatter that works consistently enough.
Thankfully someone has finally done all the boring and painful work of writing a Lua code formatter that actually works, called StyLua.
For most of the codebase, the actual changes after formatting are rather minimal. There are only two things that I'd configure for it:
Ability to preserve table constructor call syntax for single-argument function calls (for data:add {}).
Automatically hanging method chains when the first expression in the chain is a string constant wrapped in parentheses (for use inside locale/).
The text was updated successfully, but these errors were encountered:
Right now everything is formatted ad-hoc by
lua-mode
at 3-column indentation. But until recently I didn't know of any Lua code formatter that works consistently enough.Thankfully someone has finally done all the boring and painful work of writing a Lua code formatter that actually works, called StyLua.
For most of the codebase, the actual changes after formatting are rather minimal. There are only two things that I'd configure for it:
data:add {}
).locale/
).The text was updated successfully, but these errors were encountered: