Closed RatanRSur closed 8 years ago
Unfortunately, this is a known issue that I don't know when will get fixed. You have some explanation and possible workarounds here: https://olafurpg.github.io/scalafmt/#Deeplynestedcode
I should probably add another workaround to the documentation: // format: off
for the offending code blocks.
Ahh, alright, thanks for your work on this project though! I saw your video and you really do seem to care a lot about this :) So that I might try to avoid deeply nested code when possible, what does scalafmt consider "deeply nested"?
It varies, just run scalafmt and see where it complains. Sometimes it might be stupid and explode too early, if you feel it gives up on a small example don't hesitate to file an issue.
Version: 0.3.1 Integration: neovim 1.6 Configuration: --style defaultWithAlign
The first is an example it does NOT work with, and the second is an example it DOES work with. I tried horribly breaking the former to make sure it wasn't just already formatted by left justifying the whole file but still no effect.