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

Handle indentation for mixed parens/braces #1132

Closed agriffis closed 6 years ago

agriffis commented 6 years ago

This is the indentation I'm trying to achieve:

const r = myFunctionCall(longParameter1,
                         longParameter2)

const o1 = {
    k: v,
}

const o2 = Object.freeze({
    k: v,
})

The third case is the problematic one. I can mostly get what I want with cino=(0,Ws but the third case always indents as:

const o2 = Object.freeze({
                         k: v,
})

Is there a combination of cinoptions that I'm missing to achieve the desired result?

bounceme commented 6 years ago

https://github.com/pangloss/vim-javascript/issues/1114