Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tell neovim focus was gained/lost via 'ui_set_focus' #2033

Merged
merged 3 commits into from Sep 23, 2023
Merged

Conversation

9mm
Copy link
Contributor

@9mm 9mm commented Sep 17, 2023

What kind of change does this PR introduce?

This will use the newly added nvim_ui_set_focus function to notify neovim of focus gained/loss.

Did this PR introduce a breaking change?

  • No

Copy link
Member

@fredizzimo fredizzimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it works as documented, then this looks good, thanks.

@9mm
Copy link
Contributor Author

9mm commented Sep 17, 2023

I have tested basic functionality by opening a file, opening a new window with a different editor, saving that file. Upon returning to the nvim window I can see it automatically updates without needing the following in my nvim config:

autocmd FocusGained * checktime

@fredizzimo fredizzimo merged commit 8828beb into neovide:main Sep 23, 2023
2 checks passed
@fredizzimo
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Neovide is ignoring set autoread, i.e. reloading the currently edited file when activated
2 participants