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:
parent
716bad92b7
commit
d2d3c1c878
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user