-
Notifications
You must be signed in to change notification settings - Fork 72
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
Spaces as default or global config #146
Comments
It's great to hear that the transition went smooth!
StyLua is designed around the following style guide: https://roblox.github.io/lua-style-guide/, in which case Tabs are set to default. It is unlikely that will change.
I'm against this behaviour for the same reasons I described in |
Great! |
@JohnnyMorganz I want to point out that the guide is underspecified, as it does not define the tab length and rather make rules based on assumptions. If you want to have some glory editor examples not a tab width of 4 here. And this does not even take into consideration other messed up technology having different tab-length or requiring explicit configuration. |
StyLua uses I'm not sure what the guide states specifically, it is the inspiration for this formatter, but not necessarily the defining specification. I think, to not get into a debate about tabs vs spaces, the option is open for configuration for a project, they don't need to force tabs if they don't want it. Personally, tabs are important to me for accessibility reasons |
So far, the transition from lua-format to stylua was flawless.
My only issue is that I need to configure it for every project because it uses tabs as default, unlike lua-format. Is there a particular reason for that?
It would be nice if it would:
The text was updated successfully, but these errors were encountered: