Skip to content

Where indentation doesn't seem to use configuration value  #9

@owst

Description

@owst

I like to indent the "where" keyword by 2 spaces from the expression it is contained within, and then indent the bindings in the where (on a newline) by 2 more spaces, so the bindings are indented 4 spaces from the expression containing them, thus:

foop = doop 1
  where 
    doop x = x + woop x
    woop x = 0

However, when I hit enter after doop 1 and type where, it correctly gets indented by 2 spaces (I don't think this is configurable, looking at the README?) but then after hitting enter and typing doop x and woop x, the indentation is as follows:

foop = doop 1
  where 
      doop x = x + woop x
      woop x = 0

I have set let g:haskell_indent_where = 2 in my .vimrc, but it doesn't appear to have any effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions