Mercurial > vim-gutentags
changeset 87:afe113047204
Don't generate tags on file opened if `gutentags_enabled` is false.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 17 Nov 2015 21:11:20 -0800 |
parents | 7872cc9bbc2d |
children | 073e63cc0456 |
files | autoload/gutentags.vim |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/autoload/gutentags.vim Wed Oct 14 19:31:50 2015 -0700 +++ b/autoload/gutentags.vim Tue Nov 17 21:11:20 2015 -0800 @@ -150,12 +150,14 @@ call add(s:known_files, l:tagfile) " Generate this new file depending on settings and stuff. - if g:gutentags_generate_on_missing && !filereadable(l:tagfile) - call gutentags#trace("Generating missing tags file: " . l:tagfile) - call s:update_tags(module, 1, 1) - elseif g:gutentags_generate_on_new - call gutentags#trace("Generating tags file: " . l:tagfile) - call s:update_tags(module, 1, 1) + if g:gutentags_enabled + if g:gutentags_generate_on_missing && !filereadable(l:tagfile) + call gutentags#trace("Generating missing tags file: " . l:tagfile) + call s:update_tags(module, 1, 1) + elseif g:gutentags_generate_on_new + call gutentags#trace("Generating tags file: " . l:tagfile) + call s:update_tags(module, 1, 1) + endif endif endif endfor