mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 19:43:47 -05:00
Document getting focus events in tmux.
Solution by @astier. Thanks! See #612.
This commit is contained in:
@@ -26,7 +26,7 @@ Features:
|
|||||||
Constraints:
|
Constraints:
|
||||||
|
|
||||||
* Supports git only. If you work with other version control systems, I recommend [vim-signify](https://github.com/mhinz/vim-signify).
|
* Supports git only. If you work with other version control systems, I recommend [vim-signify](https://github.com/mhinz/vim-signify).
|
||||||
* Relies on the `FocusGained` event. If your terminal doesn't report focus events, either use something like [Terminus][] or set `let g:gitgutter_terminal_reports_focus=0`.
|
* Relies on the `FocusGained` event. If your terminal doesn't report focus events, either use something like [Terminus][] or set `let g:gitgutter_terminal_reports_focus=0`. For tmux, `set -f focus-events` in your tmux.conf.
|
||||||
|
|
||||||
|
|
||||||
### Screenshot
|
### Screenshot
|
||||||
@@ -557,7 +557,7 @@ Here are some things you can check:
|
|||||||
|
|
||||||
#### When signs don't update after focusing Vim
|
#### When signs don't update after focusing Vim
|
||||||
|
|
||||||
* Your terminal probably isn't reporting focus events. Either try installing [Terminus][] or set `let g:gitgutter_terminal_reports_focus=0`.
|
* Your terminal probably isn't reporting focus events. Either try installing [Terminus][] or set `let g:gitgutter_terminal_reports_focus=0`. For tmux, try `set -f focus-events` in your tmux.conf.
|
||||||
|
|
||||||
|
|
||||||
### Shameless Plug
|
### Shameless Plug
|
||||||
|
|||||||
@@ -396,6 +396,11 @@ If this applies to you, either install something like Terminus
|
|||||||
(https://github.com/wincent/terminus) to make |FocusGained| work or set this
|
(https://github.com/wincent/terminus) to make |FocusGained| work or set this
|
||||||
option to 0.
|
option to 0.
|
||||||
|
|
||||||
|
If you use tmux, try this in your tmux.conf:
|
||||||
|
>
|
||||||
|
set -g focus-events
|
||||||
|
<
|
||||||
|
|
||||||
When this option is 0, the plugin force-updates the buffer on |BufEnter|
|
When this option is 0, the plugin force-updates the buffer on |BufEnter|
|
||||||
(instead of only updating if the buffer's contents has changed since the last
|
(instead of only updating if the buffer's contents has changed since the last
|
||||||
update).
|
update).
|
||||||
|
|||||||
Reference in New Issue
Block a user