I'm looking for a tool like D's dfmt --inplace or gofmt to format code.
I found nimpretty but couldn't find much information on it;
it's not installed via brew install nim (which installs nim and nimble and nimgrep) which makes me think it's not ready yet.
just found these links:
There was the nim pretty command, but it had enough problems that it was deprecated/removed)some progress on the nimpretty tool; still not readyso is that feature planned, what works/doesn't?
also, shouldn't dedicated github issue project be used for project specific things such as nimpretty? (eg there's no existing label nimpretty)
also, shouldn't dedicated github issue project be used for project specific things such as nimpretty? (eg there's no existing label nimpretty)
Yep, and a dedicated repo for the project should be made too. @Araq prefers to keep things in the Nim repo though :/
so is that feature planned, what works/doesn't?
Planned and the biggest blocking issue is still comment handling. Once that is solved, I will run it on every .nim file I can get my hands on and try to get it into production quality.
Will you also move it into a Nimble repo to make contribution easier?
@dom96 nimpretty is baked into the compiler, so I doubt that's possible. All the work is done by compiler/parser and compiler/renderer.
@GULPF
c2nim also depends from the compiler's modules, but can be installed using Nimble.
So I don't think that this is a problem.
Question has been answered.
Most helpful comment
Planned and the biggest blocking issue is still comment handling. Once that is solved, I will run it on every .nim file I can get my hands on and try to get it into production quality.