Mercurial > vim-gutentags
diff plugin/autotags.vim @ 16:c11616828595
Add an option to specify a `ctags` options file to be used.
Fixed some arguments being forgotten in the Windows script.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 21 Aug 2014 11:32:32 -0700 |
parents | b557282af215 |
children | d48b0e48283b |
line wrap: on
line diff
--- a/plugin/autotags.vim Tue Jul 29 16:11:24 2014 -0700 +++ b/plugin/autotags.vim Thu Aug 21 11:32:32 2014 -0700 @@ -49,6 +49,10 @@ endif let g:autotags_project_root += ['.git', '.hg', '.bzr', '_darcs'] +if !exists('g:autotags_options_file') + let g:autotags_options_file = '' +endif + if !exists('g:autotags_exclude') let g:autotags_exclude = [] endif @@ -306,6 +310,9 @@ if g:autotags_pause_after_update let l:cmd .= ' -p' endif + if len(g:autotags_options_file) + let l:cmd .= ' -o "' . g:autotags_options_file . '"' + endif if g:autotags_trace if has('win32') let l:cmd .= ' -l "' . fnamemodify(l:tags_file, ':t') . '.log"'