Closed RiteshChepuri closed 5 months ago
@RiteshChepuri can you provide some more details? What's your :registers
after selecting the entry? And you does eg <c-p>
or p
work?
before selecting desired text
after selecting from neoclip
but when I try to paste nothing in register being prompted
@RiteshChepuri I don't know what you're copying. The default register ("
) did change
Are you pasting with p
?
Yeah it's p in normal mode right!
Yeah the default register is changing but when I try to paste it's not pasting the default one I guess
Do you have any remaps of p
? What's :nmap p
?
No mapping found
Does "p
paste the correct thing?
Yeah it pastes the last copied one.
So not the one you see in :registers
?
Just to be clear, could you clarify exactly:
p
and "p
do?My one was also not working. What is the clipboard your Neovim is configured?
My one is unnamedplus
.
To make the plugin work I just changed the default register for Neoclip to +
.
So just figure out what is the clipboard that your Neovim is configured and change it in the Neoclip setup :D
local neoclip = require("neoclip")
neoclip.setup({
default_register = '+',
})
yeah i used to use vim.opt.clipboard= "" it used to work fine within neovim and neoclip but the system clipboard isn't working wheni change my vim.opt.clipboard:append("unanamedplus") the system clipboard is working but neoclip isnt working . what might be the reason ? what is the fix?
I'm not sure what you mean with "not working", indeed if you run Telescope neoclip
with the default configuration and select an entry it will write this to the ""
register. If you're pasting from a different register than ""
after that (by for example changing :set clipboard
), then indeed you won't get what you previously selected.
If you want to update some other register with Telescope neoclip
you can indeed change the default register as @cabra-arretado mentions or run Telescope neoclip plus
or similar.
the yanked text shows in the neoclip telescope extension but when I select the text to copy. the selected text doesn't loaded into paste buffer. my Neoclip config file