From a8decb75b1125c64cf132486c828d8fceffdb05f Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Fri, 5 Nov 2021 13:10:58 +0800 Subject: [PATCH] Remove fold timer to support makeview/loadview --- ftplugin/vue/fold.vim | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ftplugin/vue/fold.vim b/ftplugin/vue/fold.vim index dec3037..63a58ae 100644 --- a/ftplugin/vue/fold.vim +++ b/ftplugin/vue/fold.vim @@ -2,6 +2,8 @@ let s:config = vue#GetConfig('config', {}) let s:enable_foldexpr = s:config.foldexpr if !s:enable_foldexpr | finish | endif + +" Useful for debugging foldexpr " set debug=msg function! VueFoldMain(...) @@ -90,10 +92,4 @@ function! s:IndentLevel(lnum) 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() -endif +call VueFoldMain()