registers.nvim icon indicating copy to clipboard operation
registers.nvim copied to clipboard

Unable to paste from `"` in insert mode using `<C-R>`

Open lourenci opened this issue 3 years ago • 5 comments
trafficstars

Please select which platform you are using

Mac

Was this something which used to work for you, and then stopped?

I never saw this working

Describe the bug

In ctrl-r mode, when trying to insert from " register, the following error happens:

image

Thanks for the plugin, btw.

Neovim version

NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]

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

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.0/share/nvim"

Run :checkhealth for more info

Setup

local registers = require("registers")
registers.setup({
	register_user_command = false,
	system_clipboard = false,
	show_register_types = false,
	show_empty = false,
	bind_keys = {
		return_key = false,
		ctrl_n = false,
		ctrl_p = false,
		ctrl_j = false,
		ctrl_k = false,
	},
	window = {
		highlight_cursorline = false,
		border = "rounded",
	},
})

lourenci avatar Oct 04 '22 06:10 lourenci

I can't reproduce this one. Are you using <C-R> from any irregular place?

tversteeg avatar Oct 04 '22 07:10 tversteeg

Nope. Using it in a normal buffer. 😢 I just have tried again:

  1. In a normal buffer, entered in insert mode.
  2. <C-R>"

The weird thing is that this just happens with pasting from "; the other ones work just fine. Maybe some specific to my registers.setup()? 🤷🏻‍♂️

lourenci avatar Oct 04 '22 08:10 lourenci

Yeah that's exactly what I tried as well, I have a feeling it might be related to #71, since they also use a Mac and have some weird issues I can't reproduce…

Your setup looks fine, and I also tested it with that.

tversteeg avatar Oct 04 '22 09:10 tversteeg

Did the latest commit fix this issue by any chance?

tversteeg avatar Oct 14 '22 10:10 tversteeg

Nope. 😢

lourenci avatar Oct 15 '22 05:10 lourenci

No problem with the head@master anymore.

lourenci avatar Oct 31 '22 06:10 lourenci