From 50a7062909d91a290fae04219887b1b45f3138db Mon Sep 17 00:00:00 2001 From: John Nguyen Date: Tue, 14 Aug 2018 22:02:33 -0700 Subject: [PATCH] Trigger refresh on VimResume event VimResume is neovim event that is triggered when process is resumed to foreground. --- plugin/gitgutter.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index fa3d6a5..1759771 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -203,6 +203,10 @@ augroup gitgutter autocmd FocusGained,ShellCmdPost * call gitgutter#all(1) + if exists('##VimResume') + autocmd VimResume * call gitgutter#all(1) + endif + autocmd ColorScheme * call gitgutter#highlight#define_sign_column_highlight() | call gitgutter#highlight#define_highlights() " Disable during :vimgrep