lua-fmt icon indicating copy to clipboard operation
lua-fmt copied to clipboard

Option for simple single line functions formatting

Open maluramichael opened this issue 8 years ago • 0 comments

I use https://github.com/trixnz/vscode-lua to format my code in visual studio code which uses your module.

-- sometimes i code simple methods like this in one line
function foo() return 10 end

-- when i format my code the function is getting formatted like this.
-- i would like to disable this behavior. is this possible?
function foo()
  return 10
end

maluramichael avatar Sep 05 '17 10:09 maluramichael