Fix disabling tag generation, and only index files tracked by git

This commit is contained in:
Kevin MacMartin 2022-04-15 15:24:55 -04:00
parent 98e47fb0df
commit 77f5a45c25

View file

@ -1,6 +1,12 @@
let g:gutentags_cache_dir = '~/.vim/gutentags'
let g:gutentags_file_list_command = {
\ 'markers': {
\ '.git': 'git ls-files',
\ },
\ }
"prevent automatically generating the tagfile and syntax highlighting tags (default: 0)
if !exists("g:disableautotags")
if exists("g:disableautotags") && g:disableautotags == 1
let g:gutentags_enabled = 0
endif