numtide / treefmt-nix

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

feat(programs): add fish_indent #199

Closed terlar closed 2 weeks ago

terlar commented 2 months ago

This adds support for formatting fish files via fish_indent bundled with fish. Not sure about the naming, if it should be how the tool is named or if it should be just "fish".

terlar commented 2 months ago

Unfortunately fish_indent write files every time currently so had to create a wrapper.

fish_indent --check will return the files that needs to change to stderr.

I created an issue for fish-shell: https://github.com/fish-shell/fish-shell/issues/10616

zimbatm commented 2 weeks ago

Thanks. I'll merge this, but can you send up a follow-up PR to remove the wrapper once fish-shell has released a new version?