DanielGavin / ols

Language server for Odin
MIT License
375 stars 56 forks source link

Put shorter variable attributes on one line with the attribute target #415

Open redpenguinyt opened 1 week ago

redpenguinyt commented 1 week ago

Currently, ols formats @static x := 3 to:

@(static)
x := 3

which, for such a short decorator, is unnecessary. ols should (by default, or as an option) format attributes to appear on the same line as their target, as well as dropping parenthesis when no arguments are passed (as shown in the https://odin-lang.org/docs/overview/#private example)

DanielGavin commented 5 days ago

Yes that should be the default.