-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
add support for nix #446
Comments
Thank you for your request 👍 We have so far resisted providing Nix formatting support, due to not wishing to compete with Alejandra. Your issue acts as counter-evidence to this, so we'll look into it. |
Thanks for replying @Xophmeister Personally I'd love to use Alejandra however it is not customisation and I do not agree with a number of formatting choices it's authors have made. Moreover there are a lot of issues on it's repo which have not received any attention whatsoever, which doesn't instil much confidence in the projects ability to evolve. This project seems to provide a way to customise the formatting rules which I find preferable so I was hoping it could be used to better match my preferred style. |
examples ticket I've submitted personally: and some submitted by others: |
@Xophmeister would you be able to give me some pointers? I’d be happy to submit a PR. Thanks! |
Apologies @adrian-gierakowski; we didn't mean to leave you unanswered. We will consider adding Nix support. However, it's not a priority for the team, at the moment. Therefore, if you wish to experiment independently and submit a PR, it would be more than welcome 🙏 There is a suggested workflow in the
The last point is the most involved and can't realistically be done in a single PR, as there will be many syntactic constructs you'll want to target. It's easiest to do these individually. During development of these formatting rules, I would strongly recommend creating "minimal examples" of each construction you are working on and generating their syntax visualisation (with Please let us know if there's anything more specific we can help with. |
Thanks @Xophmeister, I’ll look into it! |
Marked as P4, as I think that #4 would already address this use-case, perhaps with a small demo query file for Nix. |
Is your feature request related to a problem? Please describe.
I'd like to be able to use topiary to format nix code.
Describe the solution you'd like
Describe alternatives you've considered
nope
Additional context
none
The text was updated successfully, but these errors were encountered: