comparison autoload/gutentags.vim @ 182:2489b4b54d5c

Add `g:gutentags_generate_on_empty_buffer` setting.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 18 Apr 2017 21:43:59 -0700
parents 8bac4b955c84
children f7a417234dea
comparison
equal deleted inserted replaced
181:0b4ccd0deceb 182:2489b4b54d5c
208 " Don't setup gutentags for anything that's not a normal buffer 208 " Don't setup gutentags for anything that's not a normal buffer
209 " (so don't do anything for help buffers and quickfix windows and 209 " (so don't do anything for help buffers and quickfix windows and
210 " other such things) 210 " other such things)
211 " Also don't do anything for the default `[No Name]` buffer you get 211 " Also don't do anything for the default `[No Name]` buffer you get
212 " after starting Vim. 212 " after starting Vim.
213 if &buftype != '' || bufname('%') == '' 213 if &buftype != '' ||
214 \(bufname('%') == '' && !g:gutentags_generate_on_empty_buffer)
214 return 215 return
215 endif 216 endif
216 217
217 " Let the user specify custom ways to disable Gutentags. 218 " Let the user specify custom ways to disable Gutentags.
218 if g:gutentags_init_user_func != '' && 219 if g:gutentags_init_user_func != '' &&