1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:10:04 +08:00

fix(gtags): add warning info for executable checking

This commit is contained in:
wsdjeg 2022-10-22 11:42:19 +08:00
parent 716bad92b7
commit d2d3c1c878

View File

@ -67,9 +67,13 @@ function! SpaceVim#layers#gtags#config() abort
" gtags#update() function only exist when gtags is available
if executable('gtags')
au BufWritePost * call gtags#update(1)
else
call SpaceVim#logger#warn('gtags is not executable, the gtags database will not be updated automatically')
endif
if executable('ctags')
au BufWritePost * call ctags#update()
else
call SpaceVim#logger#warn('ctags is not executable, the ctags database will not be updated automatically')
endif
augroup END
endif