-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[Tracking] swayfmt-v2
MVP
#1516
Comments
Excited for this work @eureka-cpu ! I'll just add that we should really avoid emphasizing that I think it will be useful for development of the formatter (e.g. trying different combinations of configuration while we bikeshed over "the way" to do things), but we should avoid having users use or depend on This was discussed briefly in #605. |
Absolutely agree, currently what is on the branch is exactly in this vein ! The toml doesn't get created automatically, but you can optionally include one and it will replace values if they exist. |
I started to work on handling enums (#1873). |
Tracking for the new formatter:
Please feel free to hop in and take on some of this if it interests you:
swayfmt.toml
Added foundation forsway-fmt
v2 #1425 Addsforc-fmt-v2
plugin #1803 @eureka-cpuItemUse
tosway-fmt-v2
#2295 @eureka-cpuNewlineStyle
#1894 Adds associated functions for handling of indentation #1911 @eureka-cpuexpr
formatting tosway-fmt-v2
#2338 @eureka-cpuabi
handling tosway-fmt-v2
#2043 Addabi
handling tosway-fmt-v2
#2044 @eureka-cpuswayfmt
v2 should be able to format enums #1873 @kayagokalpItemFn
formatting tosway-fmt-v2
#2173 @eureka-cpuimpl
formatting tosfv2
#2403 @eureka-cpustorage
formatting tosway-fmt-v2
#2069 @kayagokalpsway-fmt-v2
should be able to formatstructs
#2053 @kayagokalpItemTrait
tosway-fmt-v2
#2294 @eureka-cpuItemUse
tosway-fmt-v2
#2295 @eureka-cpusway-parse
only lexes comments, and doesn't give spans #1517 ) @mitchmindtree & @kayagokalp (Add means of comment formatting tosway-fmt-v2
#2229, Inserting Comments #2311)break
andcontinue
Handlebreak
andcontinue
insway-fmt-v2
#2118 (pendingbreak
andcontinue
#2112) @eureka-cpuattribute
handling tosway-fmt-v2
#2012 Addsattribute
handling tosway-fmt-v2
#2061 @eureka-cpuexpr
formatting tosway-fmt-v2
#2338 @eureka-cpuswayfmt
's goal is to be somewhat transparent. It should format Sway code to our standards, and if the user so decides it, they can add aswayfmt.toml
to their root dir and it will assume only the changes present, and leave the rest to default.Once completed add to CI documentor: #1806
The text was updated successfully, but these errors were encountered: