pangloss / vim-javascript

Vastly improved Javascript indentation and syntax support in Vim.
http://www.vim.org/scripts/script.php?script_id=4452
3.8k stars 358 forks source link

Dot chained calls inside object are not indented correctly #1212

Open osmanpontes opened 4 years ago

osmanpontes commented 4 years ago

Issue

Current

const obj = {
  prop: a()
  .b()
  .c()
}

Desired

const obj = {
  prop: a()
    .b()
    .c()
}

Related issue

This works fine and is related to https://github.com/pangloss/vim-javascript/issues/139:

a()
  .b()
  .c()