From f2a825f405b2f682f0931d006f782aa1bad0106e Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Wed, 17 Mar 2021 14:30:49 +0000 Subject: [PATCH] Use floating window for preview instead of popup --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 5214adf..36c0ddc 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -25,7 +25,7 @@ let g:gitgutter_preview_win_location = get(g:, 'gitgutter_preview_win_location', if exists('*nvim_open_win') let g:gitgutter_preview_win_floating = get(g:, 'gitgutter_preview_win_floating', 1) else - let g:gitgutter_preview_win_floating = get(g:, 'gitgutter_preview_win_floating', 0) + let g:gitgutter_preview_win_floating = get(g:, 'gitgutter_preview_win_floating', !empty(&previewpopup)) endif let g:gitgutter_enabled = get(g:, 'gitgutter_enabled', 1) if exists('*sign_unplace')