StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

Feature request: collapse_simple_statement only unnamed functions assigned to variables

Open jonasar opened this issue 4 months ago • 0 comments

I would like to ask for the feature to be able to collapse all simple unnamed functions assigned to something, but not declarations of named functions.

Examples

Collapse this createSomething(5, 2, function() return true end, 3)

local myCallback = function(value) return 2*value end

Do not collapse this function MyTable:getvalue() return self.LastValue end

jonasar avatar Aug 18 '25 15:08 jonasar