Mercurial > vim-gutentags
comparison plugin/gutentags.vim @ 146:3459a2522a3b
Enable Project Root Finder
Only set project root finder to blank if not already set and test
explicitly for a non blank setting to see if it has been set
author | thecontinium <thecontinium@outlook.com> |
---|---|
date | Tue, 15 Nov 2016 12:50:48 +0800 |
parents | 286e5b3095d0 |
children | d566ec6cd2f7 |
comparison
equal
deleted
inserted
replaced
142:d4c09aa41e80 | 146:3459a2522a3b |
---|---|
30 let g:gutentags_add_default_project_roots = get(g:, 'gutentags_add_default_project_roots', 1) | 30 let g:gutentags_add_default_project_roots = get(g:, 'gutentags_add_default_project_roots', 1) |
31 let g:gutentags_project_root = get(g:, 'gutentags_project_root', []) | 31 let g:gutentags_project_root = get(g:, 'gutentags_project_root', []) |
32 if g:gutentags_add_default_project_roots | 32 if g:gutentags_add_default_project_roots |
33 let g:gutentags_project_root += ['.git', '.hg', '.svn', '.bzr', '_darcs', '_FOSSIL_', '.fslckout'] | 33 let g:gutentags_project_root += ['.git', '.hg', '.svn', '.bzr', '_darcs', '_FOSSIL_', '.fslckout'] |
34 endif | 34 endif |
35 let g:gutentags_project_root_finder = '' | 35 |
36 let g:gutentags_project_root_finder = get(g:, 'gutentags_project_root_finder', '') | |
36 | 37 |
37 let g:gutentags_project_info = get(g:, 'gutentags_project_info', []) | 38 let g:gutentags_project_info = get(g:, 'gutentags_project_info', []) |
38 call add(g:gutentags_project_info, {'type': 'python', 'file': 'setup.py'}) | 39 call add(g:gutentags_project_info, {'type': 'python', 'file': 'setup.py'}) |
39 call add(g:gutentags_project_info, {'type': 'ruby', 'file': 'Gemfile'}) | 40 call add(g:gutentags_project_info, {'type': 'ruby', 'file': 'Gemfile'}) |
40 | 41 |