Add option to disable asynchronous diffs.

Closes #318.
This commit is contained in:
Andy Stewart
2016-04-21 10:29:11 +01:00
parent cc77f32b5b
commit 530bf68fca
4 changed files with 22 additions and 1 deletions

View File

@@ -187,6 +187,7 @@ You can customise:
* Whether or not line highlighting is on initially (defaults to off)
* Whether or not vim-gitgutter runs in "realtime" (defaults to yes)
* Whether or not vim-gitgutter runs eagerly (defaults to yes)
* Whether or not vim-gitgutter runs asynchronously in NeoVim (defaults to yes)
Please note that vim-gitgutter won't override any colours or highlights you've set in your colorscheme.
@@ -299,6 +300,15 @@ Add `let g:gitgutter_signs = 0` to your `~/.vimrc`.
Add `let g:gitgutter_highlight_lines = 1` to your `~/.vimrc`.
#### To turn off asynchronous updates
By default diffs are run asynchronously in NeoVim. To run diffs synchronously instead:
```viml
let g:gitgutter_async = 0
```
### FAQ
> Why can't I unstage staged changes?