mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 08:50:06 +08:00
perf(gtags): make gtags and ctags lazy loaded
This commit is contained in:
parent
793aa62053
commit
dc0d65d0bb
@ -45,7 +45,11 @@ let g:gtags_open_list = 2
|
|||||||
|
|
||||||
function! SpaceVim#layers#gtags#plugins() abort
|
function! SpaceVim#layers#gtags#plugins() abort
|
||||||
return [
|
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
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user