Closed somini closed 4 years ago
To run GitGutter
synchronously: let g:gitgutter_async = 0
. I'm not sure why you want to run synchronously, especially if the system is slow?
I think you've already got the best way to turn off GitGutter without removing the signs. I think it's a rare need so I wouldn't build in that feature.
Perhaps a better option is to remove all the autocmds which trigger GitGutter:
autocmd! gitgutter
Then just call GitGutter
whenever you want.
Perhaps a better option is to remove all the autocmds which trigger GitGutter:
autocmd! gitgutter
Then just call
GitGutter
whenever you want.
This is the best option, thanks.
I sometimes work on computers with a very slow disk, so I disable the automatic git diff. Still, I would like to be able to run GitGutter on a keybinding, in a "oneshot" mode. Meaning it should run whatever git commands, show the gutter and don't run
git
anymore.I'm using this workaround:
So I'm requesting 2 things:
GitGutter
synchronouslyNote this is a rare thing, if this is too much work it's fine to close this.