Hello,
I recentry used nimpretty --maxLineLen:120 to override the 80 default value and it seems it's not doing anything.
I still have the same Hint: line too loog for line over 80 character. Is there something I missed in Nimpretty usage or is this option not working as intended ?
The problem is that I'm using Nimpretty in a Vim config file as a parameters for the ALE Plugin (https://github.com/dense-analysis/ale) :
let g:ale_fixers = { \
'*': ['remove_trailing_lines', 'trim_whitespace'], \
'nim': ['nimpretty'], \
}
And it automatically cut the line at 80. I could remove the formatting, I'm pretty satisfied I just wish I could increase the line length as 80 character is quite short in my opinion (I have a wide screen).I agree with this, but for a different reason. I have bad eyes, so I always use 80 columns in my monitor. But my editor can line-wrap.
The problem is when a function has several parameters. If I add one in the middle, the nimpretty wrap position moves. With different changes on different branch, git diff will not show just the parameter that changed, and git merge hits snags.
It's not a huge problem, but I agree with @timothee on the simple solution. I really like nimpretty -- for everything except line-wrapping.