Defer indent load time

This commit is contained in:
leafOfTree
2021-04-15 13:10:22 +08:00
parent ed7e1a9898
commit 3ed1e89f55
2 changed files with 5 additions and 3 deletions

View File

@@ -250,8 +250,9 @@ function! VimVuePluginIndentMain(...)
call s:SetVueIndent()
endfunction
if exists('*timer_start') && !exists('SessionLoad') && !s:test
call timer_start(50, 'VimVuePluginIndentMain')
let s:timer = exists('*timer_start') && !exists('SessionLoad') && !s:test
if s:timer
call timer_start(200, 'VimVuePluginIndentMain')
else
call VimVuePluginIndentMain()
endif