Strange indentation around braces
parsonsmatt opened this issue · 3 comments
parsonsmatt commented
Suppose you prefer to lay data declarations out like:
data Foo
= Foo
{ foo :: Int
, bar :: Char
, baz :: Int
} deriving (Eq, Ord)Attempting to input the above in a Haskell buffer with only haskell-vim loaded gives the following:
data Foo
= Foo
{ foo :: Int
, bar :: Char
, baz :: Int
} deriving (Eq, Ord)The braces consistently align themselves, but the commas are always indented exactly one time.
Any idea how I might configure haskell-vim to not do that, or what part of the code might be causing that indentation?
raichoo commented
I think there are some problems with the current setup of indentkeys. I'm using less aggressive rules now. I had some issues with this myself, lets see how this works.
parsonsmatt commented
I'm still getting this after pulling the master branch on an. Output of indentation is:
data Foo a
= Foo
{ foo :: Int
, bar :: String
, baz :: Bool
}raichoo commented
I can't reproduce this anymore.