Mercurial > vim-gutentags
comparison autoload/gutentags.vim @ 47:7b419abf7fba
Add ability to disable Gutentags if a `.notags` file is at the root.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 09 Apr 2015 21:14:18 -0700 |
parents | c0f56e4d52bd |
children | c1b33dc55b1c |
comparison
equal
deleted
inserted
replaced
46:c0f56e4d52bd | 47:7b419abf7fba |
---|---|
97 | 97 |
98 " Try and find what tags file we should manage. | 98 " Try and find what tags file we should manage. |
99 call gutentags#trace("Scanning buffer '" . bufname('%') . "' for gutentags setup...") | 99 call gutentags#trace("Scanning buffer '" . bufname('%') . "' for gutentags setup...") |
100 try | 100 try |
101 let b:gutentags_root = gutentags#get_project_root(expand('%:h')) | 101 let b:gutentags_root = gutentags#get_project_root(expand('%:h')) |
102 if filereadable(b:gutentags_root . '/.notags') | |
103 call gutentags#trace("'notags' file found... no gutentags support.") | |
104 return | |
105 endif | |
106 | |
102 let b:gutentags_files = {} | 107 let b:gutentags_files = {} |
103 for module in g:gutentags_modules | 108 for module in g:gutentags_modules |
104 call call("gutentags#".module."#init", [b:gutentags_root]) | 109 call call("gutentags#".module."#init", [b:gutentags_root]) |
105 endfor | 110 endfor |
106 catch /^gutentags\:/ | 111 catch /^gutentags\:/ |