mirror of
https://github.com/ludovicchabant/vim-gutentags.git
synced 2024-11-23 20:22:32 +08:00
cscope_maps: overwrite cscope_maps' db_file with tag_file
This commit is contained in:
parent
adfef8700d
commit
aa47c5e29c
|
@ -51,8 +51,11 @@ function! gutentags#cscope_maps#generate(proj_dir, tags_file, gen_opts) abort
|
|||
call gutentags#trace("Running: " . string(l:cmd))
|
||||
call gutentags#trace("In: " . getcwd())
|
||||
if !g:gutentags_fake
|
||||
let l:job_opts = gutentags#build_default_job_options('cscope_maps')
|
||||
let l:job_opts = gutentags#build_default_job_options('cscope_maps')
|
||||
let l:job = gutentags#start_job(l:cmd, l:job_opts)
|
||||
" Change cscope_maps db_file to gutentags' tags_file
|
||||
" Useful for when g:gutentags_cache_dir is used.
|
||||
let g:cscope_maps_db_file = a:tags_file
|
||||
call gutentags#add_job('cscope_maps', a:tags_file, l:job)
|
||||
else
|
||||
call gutentags#trace("(fake... not actually running)")
|
||||
|
|
Loading…
Reference in New Issue
Block a user