neovimhaskell / haskell-vim

Custom Haskell Vimscripts
BSD 2-Clause "Simplified" License
681 stars 84 forks source link

Ability to disable certain indent cases? #105

Open samtay opened 6 years ago

samtay commented 6 years ago

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?

luc-tielen commented 5 years ago

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