comparison autoload/gutentags.vim @ 63:0f5b4a36c920

Don't try to setup Gutentags for non normal buffers.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 15 Jul 2015 22:58:56 -0700
parents 4cda41f830c3
children 6900302dae0b
comparison
equal deleted inserted replaced
62:106757c129cb 63:0f5b4a36c920
90 90
91 " Setup gutentags for the current buffer. 91 " Setup gutentags for the current buffer.
92 function! gutentags#setup_gutentags() abort 92 function! gutentags#setup_gutentags() abort
93 if exists('b:gutentags_files') && !g:gutentags_debug 93 if exists('b:gutentags_files') && !g:gutentags_debug
94 " This buffer already has gutentags support. 94 " This buffer already has gutentags support.
95 return
96 endif
97
98 " Don't setup gutentags for anything that's not a normal buffer
99 " (so don't do anything for help buffers and quickfix windows and
100 " other such things)
101 if &buftype != ''
95 return 102 return
96 endif 103 endif
97 104
98 " Try and find what tags file we should manage. 105 " Try and find what tags file we should manage.
99 call gutentags#trace("Scanning buffer '" . bufname('%') . "' for gutentags setup...") 106 call gutentags#trace("Scanning buffer '" . bufname('%') . "' for gutentags setup...")