diff --git a/README.mkd b/README.mkd index 408bb2f..3a6e96e 100644 --- a/README.mkd +++ b/README.mkd @@ -528,7 +528,14 @@ Add `let g:gitgutter_preview_win_floating = 1` to your `~/.vimrc`. Note that on #### The appearance of a floating/popup window for hunk previews -Set `g:gitgutter_floating_window_options` to a dictionary of the options you want. This dictionary is passed directly to `popup_create()` (Vim) / `nvim_open_win()` (Neovim). +Either set `g:gitgutter_floating_window_options` to a dictionary of the options you want. This dictionary is passed directly to `popup_create()` (Vim) / `nvim_open_win()` (Neovim). + +Or if you just want to override one or two of the defaults, you can do that with a file in an `after/` directory. For example: + +```viml +" ~/.vim/after/vim-gitgutter/overrides.vim +let g:gitgutter_floating_window_options['border'] = 'single' +``` #### To load all hunks into the current window's location list instead of the quickfix list diff --git a/doc/gitgutter.txt b/doc/gitgutter.txt index 3ad150c..19f28d1 100644 --- a/doc/gitgutter.txt +++ b/doc/gitgutter.txt @@ -547,6 +547,13 @@ Default: This dictionary is passed directly to |popup_create()| (Vim) or |nvim_open_win()| (Neovim). +If you simply want to override one or two of the default values, create a file +in an after/ directory. For example: +> + " ~/.vim/after/vim-gitgutter/overrides.vim + let g:gitgutter_floating_window_options['border'] = 'single' +< + *g:gitgutter_close_preview_on_escape* Default: 0