mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 05:34:44 +08:00
Add init indent if ind < 1
This commit is contained in:
@@ -162,7 +162,7 @@ function! GetVueIndent()
|
|||||||
call vue#Log('... or current line is pug template tag')
|
call vue#Log('... or current line is pug template tag')
|
||||||
let ind = 0
|
let ind = 0
|
||||||
elseif s:has_init_indent
|
elseif s:has_init_indent
|
||||||
if s:SynVueScriptOrStyle(cursyn) && ind == 0
|
if s:SynVueScriptOrStyle(cursyn) && ind < 1
|
||||||
call vue#Log('add initial indent')
|
call vue#Log('add initial indent')
|
||||||
let ind = &sw
|
let ind = &sw
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user