From 77f5a45c25f8f6c387b74a6a46566fd318271e03 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Fri, 15 Apr 2022 15:24:55 -0400 Subject: [PATCH] Fix disabling tag generation, and only index files tracked by git --- vim/config/plugins/vim-gutentags.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/config/plugins/vim-gutentags.vim b/vim/config/plugins/vim-gutentags.vim index 2d35674..e49ae2c 100644 --- a/vim/config/plugins/vim-gutentags.vim +++ b/vim/config/plugins/vim-gutentags.vim @@ -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