Mercurial > vim-gutentags
comparison autoload/gutentags/ctags.vim @ 135:4c9e2de7d46a
Rename ctags.options to ctags_recursive.options
According to https://github.com/ludovicchabant/vim-gutentags/issues/33,
ctags' --recursive option was moved to an option file to allow it to be
overridden by user options files. This change makes it clear what the
purpose of this options file is.
author | Stephen Kent <smkent@smkent.net> |
---|---|
date | Fri, 22 Jul 2016 19:25:01 -0700 |
parents | 6f15299869fc |
children | 286e5b3095d0 |
comparison
equal
deleted
inserted
replaced
134:04288637e595 | 135:4c9e2de7d46a |
---|---|
78 if empty(g:gutentags_cache_dir) | 78 if empty(g:gutentags_cache_dir) |
79 let l:cur_file_path = fnamemodify(l:cur_file_path, ':.') | 79 let l:cur_file_path = fnamemodify(l:cur_file_path, ':.') |
80 endif | 80 endif |
81 let l:cmd .= ' -s "' . l:cur_file_path . '"' | 81 let l:cmd .= ' -s "' . l:cur_file_path . '"' |
82 endif | 82 endif |
83 " Pass the Gutentags options file first, and then the project specific | 83 " Pass the Gutentags recursive options file before the project |
84 " one, so that users can override the default behaviour. | 84 " options file, so that users can override --recursive. |
85 let l:cmd .= ' -o "' . gutentags#get_res_file('ctags.options') . '"' | 85 let l:cmd .= ' -o "' . gutentags#get_res_file('ctags_recursive.options') . '"' |
86 let l:proj_options_file = a:proj_dir . '/' . | 86 let l:proj_options_file = a:proj_dir . '/' . |
87 \g:gutentags_ctags_options_file | 87 \g:gutentags_ctags_options_file |
88 if filereadable(l:proj_options_file) | 88 if filereadable(l:proj_options_file) |
89 let l:proj_options_file = s:process_options_file( | 89 let l:proj_options_file = s:process_options_file( |
90 \a:proj_dir, l:proj_options_file) | 90 \a:proj_dir, l:proj_options_file) |