comparison 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
comparison
equal deleted inserted replaced
242:23ce1c1b359f 243:050d0549ecf3
186 endif 186 endif
187 187
188 let l:path = gutentags#stripslash(a:path) 188 let l:path = gutentags#stripslash(a:path)
189 let l:previous_path = "" 189 let l:previous_path = ""
190 let l:markers = g:gutentags_project_root[:] 190 let l:markers = g:gutentags_project_root[:]
191 if exists('g:ctrlp_root_markers') 191 if g:gutentags_add_ctrlp_root_markers && exists('g:ctrlp_root_markers')
192 for crm in g:ctrlp_root_markers 192 for crm in g:ctrlp_root_markers
193 if index(l:markers, crm) < 0 193 if index(l:markers, crm) < 0
194 call add(l:markers, crm) 194 call add(l:markers, crm)
195 endif 195 endif
196 endfor 196 endfor