Agent Ottsel
Agent Ottsel
I'm not sure if this is a bug or a different code style from what I'm used to, but if I have a long if statement, like this one: ```lua...
This pull request fixes this issue that I reported in October: https://github.com/trixnz/lua-fmt/issues/35 Credits to Arpple for providing the code that fixed the issue in this comment: https://github.com/trixnz/lua-fmt/issues/35#issuecomment-430600174 Before: ```lua instance...
If I have a variable and assign the result of a function that receives a table to it, like this: ```lua instance = MyClass.new({ stuff }) ``` ...The formatted code...
When I declare a function after an operator, like this: ```lua local action = params.action or function() doStuff() end ``` ...lua-fmt formats it like this: ```lua local action = params.action...
I think that empty lines in tables are good for separating groups of fields and describing them by using comments, like this: ```lua local table = { -- This field...