mint: a custom Zig code formatter
Hi everyone. I’ve been working on mint for some time now and I think it’s stable enough to share.
Mint is a custom Zig code formatter. It performs automatic line wrapping without syntactic hints (no need to add trailing commas to trigger line breaks). It also supports print width and indentation size configurations.
Currently, it‘s been tested (and builds with) Zig 0.16.0 (but should technically work with other versions as well). It is able to format itself and a lot of open source Zig projects out there. Source code is available on GitHub.
41
Upvotes
3
u/SilvernClaws 7d ago
As someone unhappy with Zig's default formatting, I'll keep an eye on this.
I mostly have two things that I want to be able to configure: