-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect indentation with data declaration #97
Comments
I currently can't reproduce this with recent |
I'm currently using I haven't tested in |
My usual guess is that some other plugin might be interfering. It sort of became a reflex to think that but it happened to be the case surprisingly often. |
Thanks for the tip! I'll have to try disabling some of my other haskell-related plugins and see if I can determine which one is to blame. |
@cdepillabout Did you ever pinpoint what it was. I am seeing this behavior in neovim. |
@raichoo Also similar to @centromere if I remove |
@codedmart Sorry, I haven't had time yet to try to pinpoint the reason. |
@raichoo Any guess as to what would be interfering? With |
@codedmart I'm using neovim v0.2.2 and able to get rid of this problem with
don't know whether or not this will introduce other problems though. |
I've played around with this and it seems like the culprit is probably However, if I disable |
I've also now tried neovim, and it seems like the problem doesn't improve. Just to make sure we're all on the same page, here is a complete description of the problem I am seeing:
The above problem also happens with any sort of tuple, lists, etc. |
I believe that the offending code is the following: haskell-vim/indent/haskell.vim Lines 160 to 188 in b1ac468
My guess is that this somehow plays poorly with |
Commenting out these lines fixes this for me: https://github.com/neovimhaskell/haskell-vim/blob/master/indent/haskell.vim#L182-L186 |
If I start with this file:
And I hit
<Enter>
,<Comma>
,<Space>
, I get this:However, I was expecting to get this:
This does not seem correct. I have confirmed that if I remove the
Plug 'neovimhaskell/haskell-vim'
line from my.vimrc
file, the problem does not exist.The text was updated successfully, but these errors were encountered: