Mercurial > vim-gutentags
diff autoload/gutentags.vim @ 132:a6ef1c860d07
Add support for custom root finders like `vim-projectroot`.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 20 Jul 2016 12:22:51 +0200 |
parents | ec57d6a14486 |
children | 04288637e595 |
line wrap: on
line diff
--- a/autoload/gutentags.vim Wed Jul 20 12:11:13 2016 +0200 +++ b/autoload/gutentags.vim Wed Jul 20 12:22:51 2016 +0200 @@ -81,6 +81,10 @@ " Finds the first directory with a project marker by walking up from the given " file path. function! gutentags#get_project_root(path) abort + if g:gutentags_project_root_finder + return call(g:gutentags_project_root_finder, [a:path]) + endif + let l:path = gutentags#stripslash(a:path) let l:previous_path = "" let l:markers = g:gutentags_project_root[:]