mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -05:00
Document how to override defaults in g:gitgutter_floating_window_options
Closes #851.
This commit is contained in:
@@ -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
|
#### 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
|
#### To load all hunks into the current window's location list instead of the quickfix list
|
||||||
|
|||||||
@@ -547,6 +547,13 @@ Default:
|
|||||||
This dictionary is passed directly to |popup_create()| (Vim) or
|
This dictionary is passed directly to |popup_create()| (Vim) or
|
||||||
|nvim_open_win()| (Neovim).
|
|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*
|
*g:gitgutter_close_preview_on_escape*
|
||||||
Default: 0
|
Default: 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user