comparison autoload/gutentags.vim @ 229:34bee0477b51

Add `g:gutentags_exclude_filetypes` setting.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 12 Nov 2018 00:07:27 -0800
parents c64e8847b4e1
children a77c3eb4ce34
comparison
equal deleted inserted replaced
228:b2d0b28d8001 229:34bee0477b51
246 if &buftype != '' || 246 if &buftype != '' ||
247 \(bufname('%') == '' && !g:gutentags_generate_on_empty_buffer) 247 \(bufname('%') == '' && !g:gutentags_generate_on_empty_buffer)
248 return 248 return
249 endif 249 endif
250 250
251 " Don't setup gutentags for things that don't need it, or that could
252 " cause problems.
253 if index(g:gutentags_exclude_filetypes, &filetype) >= 0
254 return
255 endif
256
251 " Let the user specify custom ways to disable Gutentags. 257 " Let the user specify custom ways to disable Gutentags.
252 if g:gutentags_init_user_func != '' && 258 if g:gutentags_init_user_func != '' &&
253 \!call(g:gutentags_init_user_func, [expand('%:p')]) 259 \!call(g:gutentags_init_user_func, [expand('%:p')])
254 call gutentags#trace("Ignoring '" . bufname('%') . "' because of " . 260 call gutentags#trace("Ignoring '" . bufname('%') . "' because of " .
255 \"custom user function.") 261 \"custom user function.")