comparison autoload/gutentags.vim @ 123:76a4822aab76

Use existing b:gutentags_root This could be set from g:gutentags_enabled_user_func then, for example.
author Daniel Hahler <git@thequod.de>
date Wed, 06 Apr 2016 18:05:39 +0200
parents 7db339a3961f
children e2a43c03da79
comparison
equal deleted inserted replaced
117:df3b0ca48013 123:76a4822aab76
155 try 155 try
156 let l:buf_dir = expand('%:p:h', 1) 156 let l:buf_dir = expand('%:p:h', 1)
157 if g:gutentags_resolve_symlinks 157 if g:gutentags_resolve_symlinks
158 let l:buf_dir = fnamemodify(resolve(expand('%:p', 1)), ':p:h') 158 let l:buf_dir = fnamemodify(resolve(expand('%:p', 1)), ':p:h')
159 endif 159 endif
160 let b:gutentags_root = gutentags#get_project_root(l:buf_dir) 160 if !exists('b:gutentags_root')
161 let b:gutentags_root = gutentags#get_project_root(l:buf_dir)
162 endif
161 if filereadable(b:gutentags_root . '/.notags') 163 if filereadable(b:gutentags_root . '/.notags')
162 call gutentags#trace("'notags' file found... no gutentags support.") 164 call gutentags#trace("'notags' file found... no gutentags support.")
163 return 165 return
164 endif 166 endif
165 167