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
feat: Add an option to remove parethesis arround table call #329
Comments
Thank you! Hope its working well for you Given that we already have a The only thing I would say is that I would prefer a more general option combining the two separate boolean options Would need to handle the Feel free to open up a PR if you want, or I can look into it when I've got some time |
Thanks for your reply.
Indeed . It's working really well.
That sounds like an even better idea .I'll look into implementing that. |
History repeating ;) #133 (comment) |
Heh, looking back at it I guess diluting is a con, but I think this option is reasonable and doesn't really have a big impact. And it reduces the deviation from the defaults (always parentheses), which is something I like! I'll probably leave strings for now unless there really is a significant demand for it, and I think the enum option leaves us room for it |
@JohnnyMorganz firstly great work on stylua . Thanks for making it happen.
I like having having function call parenthesis on only string call like
But not when only table is used for function call . like
Two layers of parenthesis on
seems unnecessary and no parens when only string is used gets weird time to time
Currently it's only possible to either have parenthesis on both cases or on none . Would've really liked if there was a middle ground .
Is it possible to add an option to only remove parenthesis on table calls ?
It's farely easy to add
If you're in favor of the idea I can open a pr .
The text was updated successfully, but these errors were encountered: