Mercurial > vim-gutentags
diff autoload/gutentags/cscope.vim @ 239:ac9adbec887b
Add `g:gutentags_cscope_build_inverted_index` option
author | Chayoung You <yousbe@gmail.com> |
---|---|
date | Wed, 19 Dec 2018 20:49:22 +0900 |
parents | 8e6156c4dff1 |
children | ac312dc3c111 |
line wrap: on
line diff
--- a/autoload/gutentags/cscope.vim Wed Dec 19 20:48:34 2018 +0900 +++ b/autoload/gutentags/cscope.vim Wed Dec 19 20:49:22 2018 +0900 @@ -19,6 +19,10 @@ let g:gutentags_auto_add_cscope = 1 endif +if !exists('g:gutentags_cscope_build_inverted_index') + let g:gutentags_cscope_build_inverted_index = 0 +endif + " }}} " Gutentags Module Interface {{{ @@ -50,6 +54,9 @@ if !empty(l:file_list_cmd) let l:cmd += ['-L', '"' . l:file_list_cmd . '"'] endif + if g:gutentags_cscope_build_inverted_index + let l:cmd += ['-I'] + endif let l:cmd = gutentags#make_args(l:cmd) call gutentags#trace("Running: " . string(l:cmd))