mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-10 22:51:52 +08:00
Defer indent load time
This commit is contained in:
@@ -250,8 +250,9 @@ function! VimVuePluginIndentMain(...)
|
|||||||
call s:SetVueIndent()
|
call s:SetVueIndent()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if exists('*timer_start') && !exists('SessionLoad') && !s:test
|
let s:timer = exists('*timer_start') && !exists('SessionLoad') && !s:test
|
||||||
call timer_start(50, 'VimVuePluginIndentMain')
|
if s:timer
|
||||||
|
call timer_start(200, 'VimVuePluginIndentMain')
|
||||||
else
|
else
|
||||||
call VimVuePluginIndentMain()
|
call VimVuePluginIndentMain()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -174,7 +174,8 @@ function! VimVuePluginSyntaxMain(...)
|
|||||||
call s:HighlightVueTag()
|
call s:HighlightVueTag()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if exists('*timer_start') && !exists('SessionLoad') && !s:test
|
let s:timer = exists('*timer_start') && !exists('SessionLoad') && !s:test
|
||||||
|
if s:timer
|
||||||
call timer_start(1, 'VimVuePluginSyntaxMain')
|
call timer_start(1, 'VimVuePluginSyntaxMain')
|
||||||
else
|
else
|
||||||
call VimVuePluginSyntaxMain()
|
call VimVuePluginSyntaxMain()
|
||||||
|
|||||||
Reference in New Issue
Block a user