AckslD / nvim-neoclip.lua

Clipboard manager neovim plugin with telescope integration
931 stars 19 forks source link

All registers show the same text when using Telescope neoclip <reg> #87

Closed jvcarli closed 1 year ago

jvcarli commented 1 year ago

Hi, I'm trying to use your plugin but all registers show the same text when using Telescope neoclip <reg>.

e.g.: Yank using y and then using :Telescope neoclip a shows what I've just yanked and should be available only on unnamed register.

e.g.: Yank using "ay and then using :Telescope neoclip unnamed shows what I've yanked into a register.

I've tested it using a minimal_init.lua, taken from nvim-lspconfig and adapted to only include nvim-neoclip.lua and its dependencies. I've used the default nvim-neoclip setup. The problem persists.

I'm using macos, my nvim --version output:

NVIM v0.9.0-dev-251+gf3cea06d0-dirty
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by development@local-MBP.local

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-f3cea06/share/nvim"
AckslD commented 1 year ago

Hi @jvcarli! Unless I'm misunderstanding you, this is actually the intended behaviour. All your yanks are part of a single history which you can search through using the telescope picker, it is not grouped by which register was used. The register argument to the command is instead for deciding which register you want to populate with an entry from the history.

jvcarli commented 1 year ago

@AckslD Thank you for the quick reply! I misunderstood the plugin behavior, everything is working as expected.