diff plugin/gutentags.vim @ 146:3459a2522a3b

Enable Project Root Finder Only set project root finder to blank if not already set and test explicitly for a non blank setting to see if it has been set
author thecontinium <thecontinium@outlook.com>
date Tue, 15 Nov 2016 12:50:48 +0800
parents 286e5b3095d0
children d566ec6cd2f7
line wrap: on
line diff
--- a/plugin/gutentags.vim	Thu Oct 27 13:11:25 2016 +0200
+++ b/plugin/gutentags.vim	Tue Nov 15 12:50:48 2016 +0800
@@ -32,7 +32,8 @@
 if g:gutentags_add_default_project_roots
     let g:gutentags_project_root += ['.git', '.hg', '.svn', '.bzr', '_darcs', '_FOSSIL_', '.fslckout']
 endif
-let g:gutentags_project_root_finder = ''
+
+let g:gutentags_project_root_finder = get(g:, 'gutentags_project_root_finder', '')
 
 let g:gutentags_project_info = get(g:, 'gutentags_project_info', [])
 call add(g:gutentags_project_info, {'type': 'python', 'file': 'setup.py'})