diff autoload/gutentags.vim @ 243:050d0549ecf3

Add `g:gutentags_add_ctrlp_root_markers` option. This lets users prevent Gutentags from appending CtrlP root markers, if found.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 12 Mar 2019 21:43:50 -0700
parents a77c3eb4ce34
children d3f9a92399d1
line wrap: on
line diff
--- a/autoload/gutentags.vim	Tue Mar 12 21:31:02 2019 -0700
+++ b/autoload/gutentags.vim	Tue Mar 12 21:43:50 2019 -0700
@@ -188,7 +188,7 @@
     let l:path = gutentags#stripslash(a:path)
     let l:previous_path = ""
     let l:markers = g:gutentags_project_root[:]
-    if exists('g:ctrlp_root_markers')
+    if g:gutentags_add_ctrlp_root_markers && exists('g:ctrlp_root_markers')
         for crm in g:ctrlp_root_markers
             if index(l:markers, crm) < 0
                 call add(l:markers, crm)