Skip to content

Commit

Permalink
Fix unknown function gtags#update (#4009)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Dec 18, 2020
1 parent 17f37b6 commit 297f5ea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions autoload/SpaceVim/layers/gtags.vim
Expand Up @@ -37,8 +37,13 @@ function! SpaceVim#layers#gtags#config() abort
if s:auto_update
augroup spacevim_layer_gtags
autocmd!
au BufWritePost * call ctags#update()
au BufWritePost * call gtags#update(1)
" gtags#update() function only exist when gtags is available
if executable('gtags')
au BufWritePost * call gtags#update(1)
endif
if executable('ctags')
au BufWritePost * call ctags#update()
endif
augroup END
endif
endfunction
Expand Down

0 comments on commit 297f5ea

Please sign in to comment.