elm.vim icon indicating copy to clipboard operation
elm.vim copied to clipboard

Auto-indentation of `in` and `else` can get annoying

Open kasbah opened this issue 10 years ago • 1 comments

Something is wrong with the way in is handled. Say you have some code like this:

let a = False
case a of 
    False -> ()

and you are just adding the in in front of the case you get to incase and it gets indented by one. Which is a bit annoying.

With else I often want to align like this:

f a = if a then b
      else c

so the auto-aligning to the then gets really annoying.

kasbah avatar Feb 19 '15 15:02 kasbah

+1 I think the plugin should be lenient about indentation to accommodate different coding styles. Especially since the official style guide is still going through major changes.

unblevable avatar Oct 26 '15 06:10 unblevable