Problem with the NeoVim clipboard

I think the main issue is that the clipboard registers aren’t working as both tools seem to be detected correctly according to the original post.

I’m also suspecting this could be caused by plugins, which we can check by running nvim with no config:

nvim --clean

PS: I just want to note that I’ve had issues with wl-clipboard lately in which copying/pasting became very laggy at random times, which is why I’ve opted to using to xclip instead.

If you have both installed in your system, this is how they’re picked by default, according to :h clipboard:

Nvim looks for these clipboard tools, in order of priority:

  • |g:clipboard| (unless unset or false)
  • pbcopy, pbpaste (macOS)
  • wl-copy, wl-paste (if $WAYLAND_DISPLAY is set)
  • waycopy, waypaste (if $WAYLAND_DISPLAY is set)
  • xsel (if $DISPLAY is set)
  • xclip (if $DISPLAY is set)