Mercurial > vim-gutentags
comparison autoload/gutentags.vim @ 146:3459a2522a3b
Enable Project Root Finder
Only set project root finder to blank if not already set and test
explicitly for a non blank setting to see if it has been set
author | thecontinium <thecontinium@outlook.com> |
---|---|
date | Tue, 15 Nov 2016 12:50:48 +0800 |
parents | 286e5b3095d0 |
children | d566ec6cd2f7 |
comparison
equal
deleted
inserted
replaced
142:d4c09aa41e80 | 146:3459a2522a3b |
---|---|
102 endfunction | 102 endfunction |
103 | 103 |
104 " Finds the first directory with a project marker by walking up from the given | 104 " Finds the first directory with a project marker by walking up from the given |
105 " file path. | 105 " file path. |
106 function! gutentags#get_project_root(path) abort | 106 function! gutentags#get_project_root(path) abort |
107 if g:gutentags_project_root_finder | 107 if g:gutentags_project_root_finder != '' |
108 return call(g:gutentags_project_root_finder, [a:path]) | 108 return call(g:gutentags_project_root_finder, [a:path]) |
109 endif | 109 endif |
110 | 110 |
111 let l:path = gutentags#stripslash(a:path) | 111 let l:path = gutentags#stripslash(a:path) |
112 let l:previous_path = "" | 112 let l:previous_path = "" |