EmmyLuaCodeStyle icon indicating copy to clipboard operation
EmmyLuaCodeStyle copied to clipboard

Feature Request: Separate spacing rules for arrays and tables

Open 4lph4-Ph4un opened this issue 1 year ago • 0 comments
trafficstars

I would like to be able to write tables in this manner and it to give me feedback. I personally use space between curlies in map-type of tables, and no space in arrays. I think it would also be nice if an user would define the rule other way around if they want that, since this is just a personal preference:

-- The correct way for me:
local map = { foo = 1 }
local arr = {1, 2, 3, 4}

-- I would like this to give me style-check error:
local map = {foo = 1}
local arr = { 1, 2, 3, 4 }

Mentioned this earlier and reported here as requested: LuaLS/lua-language-server#2876

4lph4-Ph4un avatar Sep 30 '24 02:09 4lph4-Ph4un