AckslD / nvim-neoclip.lua

Clipboard manager neovim plugin with telescope integration
944 stars 20 forks source link

Ignoring default_register setting #75

Closed magidc closed 1 year ago

magidc commented 1 year ago

Hi. I am trying to config neoclip to use register "+" as default. I am doing this because this is my default for paste function as I want to be integrated with systems clipboard. In spite of setting neoclip config as " default_register = '+'", when selecting a new item from Telescope, the selection is still loaded into " register.

AckslD commented 1 year ago

Hi @magidc, this does work for me, could you share your config and how you call neoclip.

magidc commented 1 year ago

Here is my neovim config. I call Telescope neoclip and select the item, but the item is not loaded to default register "+" (see my neoclip config)

AckslD commented 1 year ago

Hmm, what does the telescope prompt say? Does it say:

Pick new entry for registers +

or

Pick new entry for registers "

?

Also does Telescope neoclip plus/Telescope neoclip default/Telescope neoclip unnamed work as expected?

magidc commented 1 year ago

Good one! Telescope neoclip says Pick new entry for registers ", however if I open it as Telescope neoclip plus, all works as I required. This solves my problem but still, if I open telescope without an specific register, shouldn't use the one that was set by default in the configuration?

magidc commented 1 year ago

By the way, Telescope neoclip default still show Pick new entry for registers "

magidc commented 1 year ago

Hi, I have eventually solve the issue. It was a race condition. I was loading telescope extension from telescope's config file. This process happens before neoclip setups with my custom config. In the end, the extension loaded in telescope is the one with default configs

AckslD commented 1 year ago

I see, good that you found what was happening :) I'll close this then

magidc commented 1 year ago

Vielen dank!!

AckslD commented 1 year ago

Are you german hehe? I'm not btw πŸ™ƒπŸ‡ΈπŸ‡ͺ

magidc commented 1 year ago

Oh, sorry. For some reason I though you were German, I am Spanish :laughing: Tack!!