comparison autoload/gutentags/ctags.vim @ 49:70423c2202c5

Ctags options files changes * Remove the `g:gutentags_ctags_options_file` setting since it's mostly useless. * Use the script's `-o` option to pass a `.ctags` file in the project root if it exists. * Add documentation.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 09 Apr 2015 22:00:37 -0700
parents 64de69ca7195
children 9e768b83d701
comparison
equal deleted inserted replaced
48:c1b33dc55b1c 49:70423c2202c5
2 2
3 " Global Options {{{ 3 " Global Options {{{
4 4
5 if !exists('g:gutentags_ctags_executable') 5 if !exists('g:gutentags_ctags_executable')
6 let g:gutentags_executable = 'ctags' 6 let g:gutentags_executable = 'ctags'
7 endif
8
9 if !exists('g:gutentags_ctags_options_file')
10 let g:gutentags_ctags_options_file = ''
11 endif 7 endif
12 8
13 if !exists('g:gutentags_tagfile') 9 if !exists('g:gutentags_tagfile')
14 let g:gutentags_tagfile = 'tags' 10 let g:gutentags_tagfile = 'tags'
15 endif 11 endif
59 let l:cmd .= ' -x ' . '"' . exc . '"' 55 let l:cmd .= ' -x ' . '"' . exc . '"'
60 endfor 56 endfor
61 if g:gutentags_pause_after_update 57 if g:gutentags_pause_after_update
62 let l:cmd .= ' -c' 58 let l:cmd .= ' -c'
63 endif 59 endif
64 if len(g:gutentags_ctags_options_file) 60 let l:proj_options_file = a:proj_dir . '/.ctags'
65 let l:cmd .= ' -o "' . g:gutentags_ctags_options_file . '"' 61 if filereadable(l:proj_options_file)
62 let l:cmd .= ' -o "' . l:proj_options_file . '"'
66 endif 63 endif
67 if g:gutentags_trace 64 if g:gutentags_trace
68 if has('win32') 65 if has('win32')
69 let l:cmd .= ' -l "' . a:tags_file . '.log"' 66 let l:cmd .= ' -l "' . a:tags_file . '.log"'
70 else 67 else