-
Notifications
You must be signed in to change notification settings - Fork 25
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Problem with indentation #19
Comments
tl;dr I hear you, and am also currently working on this problemI've also been dissatisfied with the indent file in this plugin (even though I'm the one who sent the PR for it in the first place!), and have been trying various other Haskell indent plugins. So far they all suck for Elm (auto-indenting will break Elm programs), and are proving difficult to adapt. So... I'm starting to think that it might be easier to adapt an existing Python indent plugin to work for Elm. Python suffers for the same reasons (contextually significant whitespace) as Haskell, but since there are more Python users in the world their tools might be a bit better. |
Also since Elm demands 4-space indentation, maybe the plugin should make vim do that automatically? |
Is 4-space indentation an official thing? I've been away from Elm (and this plugin) for a while now; sorry to have dropped the ball. But if 4-space indentation is not semantic, then the user's |
I realised I was referring to this gist which is not I guess it's not an official thing then. —Sahil On Sat, Aug 29, 2015 at 7:21 AM, Alex Shroyer notifications@github.com
|
Until this is fixed, deleting the indentation folder works for me. |
4 spaces is idiomatic (and enforced by |
|
Hello,
It seems that there is an issue regarding the indentation.
Consider the following snippet, the cursor is represented by '^':
Then if I press backspace, I get the following:
The position of the cursor seems to be wrong.
The text was updated successfully, but these errors were encountered: