Improve code and performance

This commit is contained in:
leafOfTree
2021-03-29 15:58:50 +08:00
parent 6b48092f15
commit e1dab23589
4 changed files with 24 additions and 18 deletions

View File

@@ -199,11 +199,15 @@ function! GetVueIndent()
return ind
endfunction
function! s:Main()
function! VimVuePluginIndentMain(...)
call s:Init()
let syntax_list = vue#GetSyntaxList(s:config_syntax)
call s:SetIndentExpr(syntax_list)
call s:SetVueIndent()
endfunction
call s:Main()
if exists('*timer_start')
call timer_start(50, 'VimVuePluginIndentMain')
else
call VimVuePluginIndentMain()
endif