From af65682596d9a91b0c7e23ef644f472c84f71553 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 24 Dec 2024 11:11:54 +0800 Subject: [PATCH] perf(bootstrap): log bootstrap function status --- autoload/SpaceVim/autocmds.vim | 2 ++ autoload/SpaceVim/custom.vim | 2 ++ 2 files changed, 4 insertions(+) diff --git a/autoload/SpaceVim/autocmds.vim b/autoload/SpaceVim/autocmds.vim index 6135ca6b4..16ebfc458 100644 --- a/autoload/SpaceVim/autocmds.vim +++ b/autoload/SpaceVim/autocmds.vim @@ -88,7 +88,9 @@ else call SpaceVim#plugins#projectmanager#RootchandgeCallback() if !empty(get(g:, '_spacevim_bootstrap_after', '')) try + call SpaceVim#logger#info('run bootstrap_after function:' . g:_spacevim_bootstrap_after) call call(g:_spacevim_bootstrap_after, []) + call SpaceVim#logger#info('bootstrap_after function was called successfully.') let g:_spacevim_bootstrap_after_success = 1 catch call SpaceVim#logger#error('failed to call bootstrap_after function: ' . g:_spacevim_bootstrap_after) diff --git a/autoload/SpaceVim/custom.vim b/autoload/SpaceVim/custom.vim index e76275612..038b4c833 100644 --- a/autoload/SpaceVim/custom.vim +++ b/autoload/SpaceVim/custom.vim @@ -282,7 +282,9 @@ function! s:apply(config, type) abort if !empty(bootstrap_before) try + call SpaceVim#logger#info('run bootstrap_before function:' . bootstrap_before) call call(bootstrap_before, []) + call SpaceVim#logger#info('bootstrap_before function was called successfully.') let g:_spacevim_bootstrap_before_success = 1 catch call SpaceVim#logger#error('bootstrap_before function failed: '