Mercurial > vim-gutentags
comparison autoload/gutentags.vim @ 118:2838af9ff980
Add `g:gutentags_exclude_project_root`.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 05 Apr 2016 21:58:15 -0700 |
parents | 7db339a3961f |
children | 3763e9f412e7 |
comparison
equal
deleted
inserted
replaced
117:df3b0ca48013 | 118:2838af9ff980 |
---|---|
98 \" That's probably wrong, disabling " . | 98 \" That's probably wrong, disabling " . |
99 \"gutentags for this file...", | 99 \"gutentags for this file...", |
100 \1) | 100 \1) |
101 call gutentags#throw("Marker found at root, aborting.") | 101 call gutentags#throw("Marker found at root, aborting.") |
102 endif | 102 endif |
103 for ign in g:gutentags_exclude_project_root | |
104 if l:proj_dir == ign | |
105 call gutentags#trace( | |
106 \"Ignoring project root '" . l:proj_dir . | |
107 \"' because it is in the list of ignored" . | |
108 \" projects.") | |
109 call gutentags#throw("Ignore project: " . l:proj_dir) | |
110 endif | |
111 endfor | |
103 return l:proj_dir | 112 return l:proj_dir |
104 endif | 113 endif |
105 endfor | 114 endfor |
106 let l:previous_path = l:path | 115 let l:previous_path = l:path |
107 let l:path = fnamemodify(l:path, ':h') | 116 let l:path = fnamemodify(l:path, ':h') |
178 let b:gutentags_files = {} | 187 let b:gutentags_files = {} |
179 for module in g:gutentags_modules | 188 for module in g:gutentags_modules |
180 call call("gutentags#".module."#init", [b:gutentags_root]) | 189 call call("gutentags#".module."#init", [b:gutentags_root]) |
181 endfor | 190 endfor |
182 catch /^gutentags\:/ | 191 catch /^gutentags\:/ |
183 call gutentags#trace("Can't figure out what tag file to use... no gutentags support.") | 192 call gutentags#trace("No gutentags support for this buffer.") |
184 return | 193 return |
185 endtry | 194 endtry |
186 | 195 |
187 " We know what tags file to manage! Now set things up. | 196 " We know what tags file to manage! Now set things up. |
188 call gutentags#trace("Setting gutentags for buffer '" . bufname('%')) | 197 call gutentags#trace("Setting gutentags for buffer '" . bufname('%')) |