Mercurial > vim-gutentags
comparison 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 |
comparison
equal
deleted
inserted
replaced
253:ec292bfbd633 | 254:52be4cf89810 |
---|---|
85 let g:gutentags_plat_dir = expand('<sfile>:h:h:p') . '/plat/unix/' | 85 let g:gutentags_plat_dir = expand('<sfile>:h:h:p') . '/plat/unix/' |
86 let g:gutentags_res_dir = expand('<sfile>:h:h:p') . '/res/' | 86 let g:gutentags_res_dir = expand('<sfile>:h:h:p') . '/res/' |
87 let g:gutentags_script_ext = '.sh' | 87 let g:gutentags_script_ext = '.sh' |
88 endif | 88 endif |
89 | 89 |
90 let g:__gutentags_vim_is_leaving = 0 | |
91 | |
90 " }}} | 92 " }}} |
91 | 93 |
92 " Gutentags Setup {{{ | 94 " Gutentags Setup {{{ |
93 | 95 |
94 augroup gutentags_detect | 96 augroup gutentags_detect |
95 autocmd! | 97 autocmd! |
96 autocmd BufNewFile,BufReadPost * call gutentags#setup_gutentags() | 98 autocmd BufNewFile,BufReadPost * call gutentags#setup_gutentags() |
97 autocmd VimEnter * if expand('<amatch>')==''|call gutentags#setup_gutentags()|endif | 99 autocmd VimEnter * if expand('<amatch>')==''|call gutentags#setup_gutentags()|endif |
100 autocmd VimLeavePre * call gutentags#on_vim_leave_pre() | |
98 augroup end | 101 augroup end |
99 | 102 |
100 " }}} | 103 " }}} |
101 | 104 |
102 " Toggles and Miscellaneous Commands {{{ | 105 " Toggles and Miscellaneous Commands {{{ |