comparison autoload/gutentags.vim @ 166:1fe62e7f1fae

Don't trigger a tags generation for the empty startup buffer.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 18 Feb 2017 21:45:39 -0800
parents 28d4dae03f2a
children 95afd985a4c3
comparison
equal deleted inserted replaced
165:cbc1ebe23ef1 166:1fe62e7f1fae
196 endif 196 endif
197 197
198 " Don't setup gutentags for anything that's not a normal buffer 198 " Don't setup gutentags for anything that's not a normal buffer
199 " (so don't do anything for help buffers and quickfix windows and 199 " (so don't do anything for help buffers and quickfix windows and
200 " other such things) 200 " other such things)
201 if &buftype != '' 201 " Also don't do anything for the default `[No Name]` buffer you get
202 " after starting Vim.
203 if &buftype != '' || bufname('%') == ''
202 return 204 return
203 endif 205 endif
204 206
205 " Let the user specify custom ways to disable Gutentags. 207 " Let the user specify custom ways to disable Gutentags.
206 if g:gutentags_init_user_func != '' && 208 if g:gutentags_init_user_func != '' &&