diff plugin/gutentags.vim @ 254:52be4cf89810

Don't complain when the job gets killed when Vim exits. This happens on Neovim, where the jobs seem to get killed before Vim exits, and so Gutentags has enough time to print a warning.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 26 Oct 2019 00:40:18 -0700
parents 050d0549ecf3
children 6030953258fe
line wrap: on
line diff
--- a/plugin/gutentags.vim	Sat Oct 26 01:48:21 2019 -0700
+++ b/plugin/gutentags.vim	Sat Oct 26 00:40:18 2019 -0700
@@ -87,6 +87,8 @@
     let g:gutentags_script_ext = '.sh'
 endif
 
+let g:__gutentags_vim_is_leaving = 0
+
 " }}}
 
 " Gutentags Setup {{{
@@ -95,6 +97,7 @@
     autocmd!
     autocmd BufNewFile,BufReadPost *  call gutentags#setup_gutentags()
     autocmd VimEnter               *  if expand('<amatch>')==''|call gutentags#setup_gutentags()|endif
+    autocmd VimLeavePre            *  call gutentags#on_vim_leave_pre()
 augroup end
 
 " }}}