diff autoload/gutentags.vim @ 118:2838af9ff980

Add `g:gutentags_exclude_project_root`.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 05 Apr 2016 21:58:15 -0700
parents 7db339a3961f
children 3763e9f412e7
line wrap: on
line diff
--- a/autoload/gutentags.vim	Fri Mar 25 20:41:38 2016 -0700
+++ b/autoload/gutentags.vim	Tue Apr 05 21:58:15 2016 -0700
@@ -100,6 +100,15 @@
                                 \1)
                     call gutentags#throw("Marker found at root, aborting.")
                 endif
+                for ign in g:gutentags_exclude_project_root
+                    if l:proj_dir == ign
+                        call gutentags#trace(
+                                    \"Ignoring project root '" . l:proj_dir .
+                                    \"' because it is in the list of ignored" .
+                                    \" projects.")
+                        call gutentags#throw("Ignore project: " . l:proj_dir)
+                    endif
+                endfor
                 return l:proj_dir
             endif
         endfor
@@ -180,7 +189,7 @@
             call call("gutentags#".module."#init", [b:gutentags_root])
         endfor
     catch /^gutentags\:/
-        call gutentags#trace("Can't figure out what tag file to use... no gutentags support.")
+        call gutentags#trace("No gutentags support for this buffer.")
         return
     endtry