1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 21:00:03 +08:00

perf(gtags): make gtags and ctags lazy loaded

This commit is contained in:
Eric Wong 2024-06-16 22:24:45 +08:00
parent 793aa62053
commit dc0d65d0bb

View File

@ -45,7 +45,11 @@ let g:gtags_open_list = 2
function! SpaceVim#layers#gtags#plugins() abort
return [
\ [g:_spacevim_root_dir . 'bundle/gtags.vim', { 'merged' : 0}]
\ [g:_spacevim_root_dir . 'bundle/gtags.vim',
\ { 'merged' : 0,
\ 'on_cmd' : ['Gtags', 'GtagsGenerate'],
\ 'on_func' : ['gtags#update', 'ctags#update'],
\ }]
\ ]
endfunction