haskell-vim icon indicating copy to clipboard operation
haskell-vim copied to clipboard

Ability to disable certain indent cases?

Open samtay opened this issue 7 years ago • 1 comments

I see in the README I can globally toggle indentation off. I'd like to just disable indention for let clauses. There's really no good assumption of what a user wants to do when in a do block and on the line beneath a let statement. For example,

-- let g:haskell_indent_let = 4
something = do
  let x = 1
  y <- something else -- everytime you hit space on this line, it will shove the y under the x

-- let g:haskell_indent_let = 0
something = do
  let x = 1
      y = 0 -- everytime you hit space on this line, it will shove the y under the l

Drives me nuts - anyway I can stop it from trying to indent this at all?

samtay avatar Apr 05 '18 17:04 samtay

This drives me crazy as well, would really love to see this feature being added!

luc-tielen avatar Mar 31 '19 17:03 luc-tielen