diff plugin/gutentags.vim @ 128:e673026faa56

Add option to not append the default project root markers.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 13 Jun 2016 19:25:52 -0700
parents 5776acb079cf
children a6ef1c860d07
line wrap: on
line diff
--- a/plugin/gutentags.vim	Mon Jun 13 19:15:17 2016 -0700
+++ b/plugin/gutentags.vim	Mon Jun 13 19:25:52 2016 -0700
@@ -27,8 +27,11 @@
 let g:gutentags_enabled_user_func = get(g:, 'gutentags_enabled_user_func', '')
 let g:gutentags_modules = get(g:, 'gutentags_modules', ['ctags'])
 
+let g:gutentags_add_default_project_roots = get(g:, 'gutentags_add_default_project_roots', 1)
 let g:gutentags_project_root = get(g:, 'gutentags_project_root', [])
-let g:gutentags_project_root += ['.git', '.hg', '.svn', '.bzr', '_darcs', '_FOSSIL_', '.fslckout']
+if g:gutentags_add_default_project_roots
+    let g:gutentags_project_root += ['.git', '.hg', '.svn', '.bzr', '_darcs', '_FOSSIL_', '.fslckout']
+endif
 
 let g:gutentags_project_info = get(g:, 'gutentags_project_info', [])
 call add(g:gutentags_project_info, {'type': 'python', 'file': 'setup.py'})