Mercurial > vim-gutentags
diff plugin/autotags.vim @ 5:12f4f50f4d3a
Use CtrlP root markers if they've been defined.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 20 Jul 2014 14:38:44 -0700 |
parents | 60adce96ac2d |
children | f0f1d20d6f5c |
line wrap: on
line diff
--- a/plugin/autotags.vim Sun Jul 20 14:25:23 2014 -0700 +++ b/plugin/autotags.vim Sun Jul 20 14:38:44 2014 -0700 @@ -113,6 +113,10 @@ function! s:get_tagfile_for(path) abort let l:path = s:stripslash(a:path) let l:previous_path = "" + let l:markers = g:autotags_project_root[:] + if exists('g:ctrlp_root_markers') + let l:markers += g:ctrlp_root_markers + endif while l:path != l:previous_path for root in g:autotags_project_root if getftype(l:path . '/' . root) != ""