vim:plugins: Only add gutentags with ctags

Only add gutentags with `ctags` as valid executable. Otherwise vim will
complain.
This commit is contained in:
2022-01-21 16:42:25 +01:00
parent 88bd0bcf25
commit c2e21d23c0
2 changed files with 8 additions and 6 deletions

View File

@@ -1 +0,0 @@
../opt/vim-gutentags/

View File

@@ -12,8 +12,11 @@ if (has('patch-8.1.1719') || has('nvim'))
endif
" ctags
let g:gutentags_ctags_exclude = [
\ 'node_modules/*',
\ '.git/*',
\ 'build/*'
\]
if (executable('ctags'))
packadd! vim-gutentags
let g:gutentags_ctags_exclude = [
\ 'node_modules/*',
\ '.git/*',
\ 'build/*'
\]
endif