-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Hi, thanks for the wonderful plugin.
I may not be aware of the details of this implementation so my apologies if this is impossible.
There are some plugins that overrides y
and p
to perform custom yanking, like
vim-cutlass and vim-yoink.
I found a problem that in this way you can't use these plugins together.
I saw that there is an autocmd for text yanking.
Here's the minimal example:
vim.api.nvim_create_autocmd({ "TextYankPost" }, {
callback = function()
vim.highlight.on_yank({ higroup = "Visual", timeout = 200 })
end,
})
Perhaps you can use such autocmds to perform buffer syncing rather than remapping y
key, and if all plugin developers do that it should be possible to override multiple functionalities related to yanks.
What do you think?
EDIT:
Sorry, it seems like you're already doing this. I don't know why vim-yoink
stopped working with this plugin installed, then. Any idea to make both work together?