vimrc: Disable gutentags when ctags unavailable

This commit is contained in:
2020-07-04 21:24:48 +02:00
parent 55a06db3fe
commit a9f4901e25

4
.vimrc
View File

@@ -113,6 +113,9 @@ command! -bang -range=% -complete=file -nargs=* W <line1>,<line2>write<bang> <ar
command! -bang Q quit<bang> command! -bang Q quit<bang>
" Gutentags configuration " Gutentags configuration
if !executable('ctags')
let g:gutentags_enabled = 0
else
let g:gutentags_add_default_project_roots = 0 let g:gutentags_add_default_project_roots = 0
let g:gutentags_project_root = ['.git'] let g:gutentags_project_root = ['.git']
@@ -178,6 +181,7 @@ let g:gutentags_ctags_exclude = [
\ '*.pdf', '*.doc', '*.docx', '*.ppt', '*.pptx', \ '*.pdf', '*.doc', '*.docx', '*.ppt', '*.pptx',
\ ] \ ]
endif
" fugitive.vim looks for tags in .git " fugitive.vim looks for tags in .git
" set tags +=~/tags " Recursively move upwards in tree, searching in subfolders for tags file " set tags +=~/tags " Recursively move upwards in tree, searching in subfolders for tags file