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

fix(gtags): clear autocmd when check health

This commit is contained in:
wsdjeg 2022-04-11 09:56:52 +08:00
parent b565b3d6fb
commit 3e9b813034

View File

@ -96,6 +96,11 @@ endfunction
function! SpaceVim#layers#gtags#health() abort
call SpaceVim#layers#gtags#plugins()
call SpaceVim#layers#gtags#config()
if !SpaceVim#layers#isLoaded('gtags')
augroup spacevim_layer_gtags
autocmd!
augroup END
endif
return 1
endfunction