-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Initialize neovim clipboard on startup #1
Initialize neovim clipboard on startup #1
Conversation
After making the proposed changes, I started encountering this error randomly when opening neovim:
Apparently, this is related to astrand/xclip#38 and the fact that I'm using xclip. One way I found to still implement this change, and not get this error, is to do something like this on the vim.defer_fn(function () copy_register('+', '"') end, 1000) Which is just a way to wait a bit before setting the register. But since this is not guaranteed to work, and is very hacky, I'll be closing this pull request until I have a better solution |
Thank you, I'm glad you like it! That's a valid issue and your solution seems to work for me ( Is the EDIT: Is the error also displayed if you replace |
Oh, using It did not work using This seems to be an issue exclusively with xclip. Other clipboard managers seem to work just fine either way. You think it'd be okay to replace Also, I think you're right that we should not assume |
I believe that I had some issues with I feel closing it was not needed, I will not blindly accept it without checking 😉 Are you sure this error does not appear in your |
I've submitted the change from |
Hi!
I noticed a small issue: the internal neovim register
"
is not initialized on startup, making a focus switch necessary to make sure it's properly set. This pull request should fix that.Loved the project's approach. Let me know if this is not appropriate, or if changes are needed :)