Open DestyNova opened 3 years ago
Update: I was able to make manual alignment easier with let g:haskell_indent_if = 2
, although it still autoindents else
too far after one or more newlines.
I've added a testcase for this situation in PR #128, but I don't know enough vimscript to fix it ATM.
I typed in this example:
The
else
is indented too far and should be directly under thethen
. If I use<<
to unindent theelse
line, it only moves left by one space and I have to manually delete a space from the beginning of the line. I'm not sure if there's a specific interaction between thedo
and theif-then-else
.However, another example shows if the
else
block doesn't immediately follow on the next line from thethen
, it doesn't indent properly. If I hit enter after thethen
, the cursor lines up at the same level asthen
. Hitting tab inserts a single space, then I type the number123
, hit enter and typeelse
, which lines up with the123
, ending with a similar result to thedo
example: