comparison autoload/gutentags.vim @ 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 0424970d81f8
children 073e63cc0456
comparison
equal deleted inserted replaced
86:7872cc9bbc2d 87:afe113047204
148 let l:found = index(s:known_files, l:tagfile) 148 let l:found = index(s:known_files, l:tagfile)
149 if l:found < 0 149 if l:found < 0
150 call add(s:known_files, l:tagfile) 150 call add(s:known_files, l:tagfile)
151 151
152 " Generate this new file depending on settings and stuff. 152 " Generate this new file depending on settings and stuff.
153 if g:gutentags_generate_on_missing && !filereadable(l:tagfile) 153 if g:gutentags_enabled
154 call gutentags#trace("Generating missing tags file: " . l:tagfile) 154 if g:gutentags_generate_on_missing && !filereadable(l:tagfile)
155 call s:update_tags(module, 1, 1) 155 call gutentags#trace("Generating missing tags file: " . l:tagfile)
156 elseif g:gutentags_generate_on_new 156 call s:update_tags(module, 1, 1)
157 call gutentags#trace("Generating tags file: " . l:tagfile) 157 elseif g:gutentags_generate_on_new
158 call s:update_tags(module, 1, 1) 158 call gutentags#trace("Generating tags file: " . l:tagfile)
159 call s:update_tags(module, 1, 1)
160 endif
159 endif 161 endif
160 endif 162 endif
161 endfor 163 endfor
162 endfunction 164 endfunction
163 165