mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-09 22:25:12 +08:00
Remove fold timer to support makeview/loadview
This commit is contained in:
@@ -2,6 +2,8 @@ let s:config = vue#GetConfig('config', {})
|
|||||||
let s:enable_foldexpr = s:config.foldexpr
|
let s:enable_foldexpr = s:config.foldexpr
|
||||||
|
|
||||||
if !s:enable_foldexpr | finish | endif
|
if !s:enable_foldexpr | finish | endif
|
||||||
|
|
||||||
|
" Useful for debugging foldexpr
|
||||||
" set debug=msg
|
" set debug=msg
|
||||||
|
|
||||||
function! VueFoldMain(...)
|
function! VueFoldMain(...)
|
||||||
@@ -90,10 +92,4 @@ function! s:IndentLevel(lnum)
|
|||||||
endfunction
|
endfunction
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
let s:test = exists('g:vim_vue_plugin_test')
|
|
||||||
let s:timer = exists('*timer_start') && !exists('SessionLoad') && !s:test
|
|
||||||
if s:timer
|
|
||||||
call timer_start(300, 'VueFoldMain')
|
|
||||||
else
|
|
||||||
call VueFoldMain()
|
call VueFoldMain()
|
||||||
endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user