StyLua
StyLua copied to clipboard
An opinionated Lua code formatter
``I recently began using StyLua and love how it's made my functions more readable by moving the parameters to multiple lines when there are too many of them. I believe...
Comment should be retained directly before and after the parens. Probably a good idea to test a bunch of variations of this one. It looks like adding trailing commas might...
Pulls in new changes from external repositories for test cases - This pull request is **auto-generated** - Note: **snapshots have not been updated**. You must manually update snapshots for the...
# Use Case - I use VSCode for many environments. Use it for local files or use it for remote files using SSH (Remote SSH). - My local is Windows...
https://github.com/Norbyte/bg3se
Source: https://github.com/tomrus88/BlizzardInterfaceCode/blob/master/Interface/FrameXML/FlowContainer.lua Source: https://github.com/tomrus88/BlizzardInterfaceCode/blob/master/Interface/FrameXML/SecureGroupHeaders.lua ```lua --If it doesn't fit on the current row, move to the next. if ( object == "linebreak" or --Force a new line type(object) == "table"...
0.14.2 shouldn't add a new line on the `else` on line 622 
## Description I'm not sure if this is intentional. If it's intentional, it sure looks odd. Behavior of `v0.13.x` was much nicer. ### Input ```lua local height = math.max(math.min(#items, defaults(options.max_height,...
I installed the StyLua VSCode extension and have set the `stylua.styluaPath` setting to my version installed with Foreman. It's located in my C:\Users\___\.foreman\bin folder. It functions perfectly, but every time...
https://github.com/kikito/inspect.lua/blob/master/inspect.lua reduction: ```lua local function escape(str) return (str:gsub("\\", "\\\\"):gsub("(%c)%f[0-9]", longControlCharEscapes):gsub("%c", shortControlCharEscapes)) end ``` with a 100 column width limit, running stylua 0.14.2 on the file twice has an effect. without...