numtide / treefmt-nix

treefmt nix configuration
https://numtide.github.io/treefmt/
MIT License
247 stars 75 forks source link

compress the settings #21

Closed zimbatm closed 1 year ago

zimbatm commented 1 year ago

Compress the programs and formatters together. This reduces quite a bit of complexity in the formatter folder and also makes formatter settings more directly available.

The main downside is that it's not possible to extend the programs schema with custom settings anymore (see rustfmt and ormolu). The other downsides are that the settings are not cleanly separated and programs not cleanly exposed anymore (ie: no defaultText).

zimbatm commented 1 year ago

What do you think @srid, is that what you had in mind?

Do you have ideas on how to mitigate some of the downsides?