Can't make indentation work as expected (nvim v0.3.0-dev)
DestyNova opened this issue · 1 comments
DestyNova commented
Hello, I've been trying without success to get indentation working with haskell-vim.
First, I tried using vim-plug. Next, I tried Pathogen and switched out my init.vim for a minimal one containing the following:
set sw=2 ts=2 sts=2 expandtab
syntax on
filetype plugin indent on
execute pathogen#infect()With this selection of code from a Haskell file:
testIndent :: [String]
testIndent = [ "hello"
,"wat"
,"goodbye" ]
testWhere f = g f
where g :: Int -> Int
g x = 2*x
data Foo
= Foo
{ foo :: Int
, bar :: Char
, baz :: Int
} deriving (Eq, Ord)I got the same result with both methods when indenting with =:
testIndent :: [String]
testIndent = [ "hello"
,"wat"
,"goodbye" ]
testWhere f = g f
where g :: Int -> Int
g x = 2*x
data Foo
= Foo
{ foo :: Int
, bar :: Char
, baz :: Int
} deriving (Eq, Ord)This doesn't seem like correct behaviour. I double-checked set indentexpr and it returns GetHaskellIndent(). Is there a configuration step I'm missing?
DestyNova commented
I've reinstalled the latest version and tested this again and those examples seem to work fine now.