neovimhaskell / haskell-vim

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

Wrong indent with list syntax #94

Closed cloudhead closed 7 years ago

cloudhead commented 7 years ago

I have a pretty basic case that doesn't work properly:

foo :: [Int]
foo =
    [ 1
      , 2
      , 3
    ]

The lines with 2 and 3 are incorrectly auto-indented an extra two spaces. This seems to take place in the indentGuard function. Looking into it now but maybe you know how to fix it already.

cloudhead commented 7 years ago

Ok I think I found the problem. I'm not using the same syntax file, and since this is based on synIDs, such as haskellBracket etc. it doesn't work.

raichoo commented 7 years ago

So I guess I'll just close this then.