AckslD / nvim-neoclip.lua

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

`select` not placing what's selected in yank register #101

Closed sf8193 closed 1 year ago

sf8193 commented 1 year ago

config

use {"AckslD/nvim-neoclip.lua", requires = {{'nvim-telescope/telescope.nvim'},},}

require('neoclip').setup({
      keys = {
        telescope = {
          i = {
            select = '<cr>',
            paste = '<c-p>',
            paste_behind = '<c-o>',
          },
        },
      }
})

when i hit enter within telescope, it gets put into my "0 register. I'd like it instead for me to be able to just hit p and paste the entry i selected. Is this possible?

sf8193 commented 1 year ago

i realized it was because i needed to put it in clipboard register 🤦

AckslD commented 1 year ago

You can also press <c-p> in insert mode or p in normal mode to do this by default, ie instead of <cr>