mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:40:06 +08:00
fix(gtags): add warning info for executable checking
This commit is contained in:
parent
716bad92b7
commit
d2d3c1c878
@ -67,9 +67,13 @@ function! SpaceVim#layers#gtags#config() abort
|
|||||||
" gtags#update() function only exist when gtags is available
|
" gtags#update() function only exist when gtags is available
|
||||||
if executable('gtags')
|
if executable('gtags')
|
||||||
au BufWritePost * call gtags#update(1)
|
au BufWritePost * call gtags#update(1)
|
||||||
|
else
|
||||||
|
call SpaceVim#logger#warn('gtags is not executable, the gtags database will not be updated automatically')
|
||||||
endif
|
endif
|
||||||
if executable('ctags')
|
if executable('ctags')
|
||||||
au BufWritePost * call ctags#update()
|
au BufWritePost * call ctags#update()
|
||||||
|
else
|
||||||
|
call SpaceVim#logger#warn('ctags is not executable, the ctags database will not be updated automatically')
|
||||||
endif
|
endif
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user