# HG changeset patch # User Ludovic Chabant # Date 1528864710 25200 # Node ID 2c30656d5f3bfcfc40e00cfaf06132322394c87e # Parent 011d855724bfda71acc25f23a3bb5ef1b64b2fbb# Parent 11e5b14332fde2685125c8c95c7a5805c1e88a06 Merge pull request 185 from Github. diff -r 11e5b14332fd -r 2c30656d5f3b README.md --- a/README.md Mon May 21 11:48:06 2018 -0700 +++ b/README.md Tue Jun 12 21:38:30 2018 -0700 @@ -70,6 +70,12 @@ I don't want to have to think about it, and probably neither do you. +# Related Projects + +* [gutentags_plus](https://github.com/skywind3000/gutentags_plus): handles + switching between `cscope` databases automatically before performing a search + query. + [Pathogen]: https://github.com/tpope/vim-pathogen [ctrlp]: https://github.com/kien/ctrlp.vim diff -r 11e5b14332fd -r 2c30656d5f3b autoload/gutentags.vim --- a/autoload/gutentags.vim Mon May 21 11:48:06 2018 -0700 +++ b/autoload/gutentags.vim Tue Jun 12 21:38:30 2018 -0700 @@ -549,7 +549,7 @@ endfunction function! gutentags#default_io_cb(chan, msg) abort - call gutentags#trace(a:msg) + call gutentags#trace(string(a:msg)) endfunction if has('nvim') @@ -563,18 +563,19 @@ endfunction function! gutentags#build_default_job_options(module) abort - let l:job_opts = { - \'on_exit': function( - \ 'nvim_job_exit_wrapper', - \ ['gutentags#'.a:module.'#on_job_exit']), - \'on_stdout': function( - \ 'nvim_job_out_wrapper', - \ ['gutentags#default_io_cb']), - \'on_stderr': function( - \ 'nvim_job_out_wrapper', - \ ['gutentags#default_io_cb']) - \} - return l:job_opts + " Neovim kills jobs on exit, which is what we want. + let l:job_opts = { + \'on_exit': function( + \ 'nvim_job_exit_wrapper', + \ ['gutentags#'.a:module.'#on_job_exit']), + \'on_stdout': function( + \ 'nvim_job_out_wrapper', + \ ['gutentags#default_io_cb']), + \'on_stderr': function( + \ 'nvim_job_out_wrapper', + \ ['gutentags#default_io_cb']) + \} + return l:job_opts endfunction function! gutentags#start_job(cmd, opts) abort @@ -584,10 +585,11 @@ " Vim8 job API. function! gutentags#build_default_job_options(module) abort let l:job_opts = { - \'exit_cb': 'gutentags#'.a:module.'#on_job_exit', - \'out_cb': 'gutentags#default_io_cb', - \'err_cb': 'gutentags#default_io_cb' - \} + \'exit_cb': 'gutentags#'.a:module.'#on_job_exit', + \'out_cb': 'gutentags#default_io_cb', + \'err_cb': 'gutentags#default_io_cb', + \'stoponexit': 'term' + \} return l:job_opts endfunction diff -r 11e5b14332fd -r 2c30656d5f3b doc/gutentags.txt --- a/doc/gutentags.txt Mon May 21 11:48:06 2018 -0700 +++ b/doc/gutentags.txt Tue Jun 12 21:38:30 2018 -0700 @@ -629,6 +629,11 @@ generated code database to Vim by running `:cs add` (see |:cscope|). Defaults to 1. + +People using `cscope` or `gtags_cscope` across multiple projects in the same +Vim instance might be interested in the `gutentags_plus` plugin, which handles +switching databases automatically before performing a query. +See https://github.com/skywind3000/gutentags_plus. ============================================================================= 5. Project Settings *gutentags-project-settings*