TaDaa / vimade

An eye friendly plugin that fades your inactive buffers and preserves your syntax highlighting!
MIT License
486 stars 8 forks source link

FocusLost event sometimes does not fire when pane with vim inside is zooming #58

Closed hoango7604 closed 3 years ago

hoango7604 commented 3 years ago

I recently install this plugin in order to trigger FocusLost event and fade vim inside inactive tmux pane using TaDaa/vimade. Everything works fine, except for when vim is inside tmux pane which is being zoom and then I switch to another pane, sometimes it fades and sometimes doesn't.

Details:

My vim config: config repository

Expected behavior: Vim immediately fades after switched from it's containing tmux pane to another pane. Actual behavior: Sometimes Vim fades and sometimes it doesn't.

Attachment: issue-attachment-gif

TaDaa commented 3 years ago

interesting behavior -- After a few tests it seems like the following is happening:

In the short term, I think that ensuring let g:vimade.usecursorhold=0 would give you a better behavior. I'll have to dig into vim-tmux-focus-events later and see if anything stands out.

hoango7604 commented 3 years ago

Like what you've said, it really works well when I changed g:vimade.usecursorhold value from 1 to 0. I will close this issue since a solution is found.