Add init indent if ind < 1

This commit is contained in:
leafOfTree
2019-10-12 15:37:34 +08:00
parent bd7cb41e06
commit e413df775e

View File

@@ -162,7 +162,7 @@ function! GetVueIndent()
call vue#Log('... or current line is pug template tag')
let ind = 0
elseif s:has_init_indent
if s:SynVueScriptOrStyle(cursyn) && ind == 0
if s:SynVueScriptOrStyle(cursyn) && ind < 1
call vue#Log('add initial indent')
let ind = &sw
endif