Skip to content

dot chained calls are not indented correctly #139

Closed
@nisaacson

Description

@nisaacson

When chaining calls together via the . operator, the following lines are not indented correctly

Desired

one()
  .then(two)
  .then(function() {
  })
  .fail(failHandler)

Current

one()
.then(two)
.then(function() {
})
.fail(failHandler)

Is there a way I can add a custom regular expression to perform additional indentation after the standard vim-javascript indent plugin has finished? Adding an additional two spaces to any line that begins with . would be a vast improvement

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions