Mercurial > vim-gutentags
changeset 213:2c30656d5f3b
Merge pull request 185 from Github.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 12 Jun 2018 21:38:30 -0700 |
parents | 011d855724bf (diff) 11e5b14332fd (current diff) |
children | 179683b0f54c |
files | |
diffstat | 3 files changed, 30 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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( - \ '<SID>nvim_job_exit_wrapper', - \ ['gutentags#'.a:module.'#on_job_exit']), - \'on_stdout': function( - \ '<SID>nvim_job_out_wrapper', - \ ['gutentags#default_io_cb']), - \'on_stderr': function( - \ '<SID>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( + \ '<SID>nvim_job_exit_wrapper', + \ ['gutentags#'.a:module.'#on_job_exit']), + \'on_stdout': function( + \ '<SID>nvim_job_out_wrapper', + \ ['gutentags#default_io_cb']), + \'on_stderr': function( + \ '<SID>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
--- 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*