cohama / lexima.vim

Auto close parentheses and repeat by dot dot dot...
995 stars 46 forks source link

Fix indent depth when &ts != &sw #61

Closed k-takata closed 7 years ago

k-takata commented 7 years ago

Number of tabs should be calculated based on &ts instead of &sw.

k-takata commented 7 years ago

ts=8, sw=4 のように、tsswが一致していない設定の場合、インデントが実際よりも深くなってしまいます。

{
    {|}
}

上の | の位置にカーソルを置いて、Enterを押すと以下のように、4行目の}の位置が深くなっています。 スペース 4つでインデントすべきところ、タブ 1つでインデントされています。

{
    {
        |
        }
}
cohama commented 7 years ago

Thanks!