mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +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')
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user