-
Notifications
You must be signed in to change notification settings - Fork 27
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
Clipboard action picking up items from previous selection in visual mode (v
)
#66
Comments
Thanks for the report. It worked correctly when I did the following on_init = function()
vim.api.nvim_buf_set_keymap(
0,
"x",
"C",
':<C-u>lua require"lir.mark.actions".toggle_mark("v")<CR> | :lua require"lir.clipboard.actions".copy()<CR>',
{ noremap = true, silent = true }
)
end
|
Using vim.api.nvim_buf_set_keymap(0, "x", "C", "", {
noremap = true,
callback = function()
m.toggle_mark("v")
c.copy()
end,
}) |
This is not working for me. Which Neovim version are you on? I'm on stable
|
Hi @tamago324 any update here? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I've a custom function which marks the items and calls the respective clipboard action all in one. This was working perfectly well, but at some point in the past it stopped working. Today, I got the time to debug it and seems to be a problem in the plugin, but I'm not 100% sure.
Reproduction
minimal.lua
nvim -n -u path/to/minimal.lua
You'll notice that in step 4, nothing got marked as copy while in step 5, the previous selection got marked as copy.
Video
The text was updated successfully, but these errors were encountered: