mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 23:50:04 +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
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user