Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Restart Neovim without restarting Neovide #1713

Unanswered
chrisgrieser asked this question in Q&A
Discussion options

For some config changes, it is necessary to restart neovim instead of just re-sourcing the config files.

While especially with lazy loading Neovim startup time is incredibly fast, a fair amount of time seems to be taken up by restarting Neovide s well in the process.

is it possible to restart neovim without restarting Neovide?

You must be logged in to vote

Replies: 2 comments · 2 replies

Comment options

Prior to neovide, I used a shell script to wrap neovim and relaunch it if it exited with a specific status code. Then I made a mapping in nvim to call os.exit(62) to trigger the restart.

I attempted to reuse this script using --neovim-bin. but it appears that once the headless session disconnects, neovide doesn't reconnect it. It's also possible neovide doesn't like the state it's left in on the os.exit.

You must be logged in to vote
2 replies
@fredizzimo
Comment options

You should be able to do the same with Neovide, the exit code from nvim is forwarded as the exit code of Neovide. You just need to change your script to launch Neovide instead of nvim. Make sure to use the default --no-fork, otherwise it's not possible to get any exit codes.

@duckbrain
Comment options

Thanks, that sounds good. I'll give that a shot.

I was also trying to avoid losing the window, since that causes layout changes in i3, but getting a form of easy restart will be nice.

Comment options

The refactoring that's taking place in order to support the multigrid will make this much easier to support in the future. So this will probably be implemented sometime after that is done.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.