From d2d3c1c878e0eb7d4201f9744f191bb6f5fb1a56 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 22 Oct 2022 11:42:19 +0800 Subject: [PATCH] fix(gtags): add warning info for executable checking --- autoload/SpaceVim/layers/gtags.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/SpaceVim/layers/gtags.vim b/autoload/SpaceVim/layers/gtags.vim index 4f12bd642..25b62d242 100644 --- a/autoload/SpaceVim/layers/gtags.vim +++ b/autoload/SpaceVim/layers/gtags.vim @@ -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