Mercurial > vim-gutentags
comparison plugin/gutentags.vim @ 136:286e5b3095d0
Allow restricting tag generation to files listed by custom commands
This adds a new setting, g:gutentags_file_list_command, which specifies
command(s) to use to list files for which tags should be generated,
instead of recursively examining all files within the project root.
This is useful in projects using source control to restrict tag
generation to only files tracked in the repository.
This setting is conceptually similar to CtrlP's ctrlp_user_command
option.
This implements the feature requested in
https://github.com/ludovicchabant/vim-gutentags/issues/90
author | Stephen Kent <smkent@smkent.net> |
---|---|
date | Fri, 22 Jul 2016 19:25:05 -0700 |
parents | a6ef1c860d07 |
children | 7bc4df0225d1 3459a2522a3b |
comparison
equal
deleted
inserted
replaced
135:4c9e2de7d46a | 136:286e5b3095d0 |
---|---|
42 let g:gutentags_exclude_project_root = get(g:, 'gutentags_exclude_project_root', ['/usr/local']) | 42 let g:gutentags_exclude_project_root = get(g:, 'gutentags_exclude_project_root', ['/usr/local']) |
43 let g:gutentags_resolve_symlinks = get(g:, 'gutentags_resolve_symlinks', 0) | 43 let g:gutentags_resolve_symlinks = get(g:, 'gutentags_resolve_symlinks', 0) |
44 let g:gutentags_generate_on_new = get(g:, 'gutentags_generate_on_new', 1) | 44 let g:gutentags_generate_on_new = get(g:, 'gutentags_generate_on_new', 1) |
45 let g:gutentags_generate_on_missing = get(g:, 'gutentags_generate_on_missing', 1) | 45 let g:gutentags_generate_on_missing = get(g:, 'gutentags_generate_on_missing', 1) |
46 let g:gutentags_generate_on_write = get(g:, 'gutentags_generate_on_write', 1) | 46 let g:gutentags_generate_on_write = get(g:, 'gutentags_generate_on_write', 1) |
47 let g:gutentags_file_list_command = get(g:, 'gutentags_file_list_command', '') | |
47 | 48 |
48 if !exists('g:gutentags_cache_dir') | 49 if !exists('g:gutentags_cache_dir') |
49 let g:gutentags_cache_dir = '' | 50 let g:gutentags_cache_dir = '' |
50 else | 51 else |
51 " Make sure we get an absolute/resolved path (e.g. expanding `~/`), and | 52 " Make sure we get an absolute/resolved path (e.g. expanding `~/`), and |