Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Separate spacing rules for arrays and tables #187

Open
4lph4-Ph4un opened this issue Sep 30, 2024 · 0 comments
Open

Feature Request: Separate spacing rules for arrays and tables #187

4lph4-Ph4un opened this issue Sep 30, 2024 · 0 comments
Labels
enhancement New feature or request feature request

Comments

@4lph4-Ph4un
Copy link

4lph4-Ph4un commented Sep 30, 2024

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

@CppCXY CppCXY added enhancement New feature or request feature request labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

2 participants