[Linux Neovim Clipboard struggle]
Since I started using Neovim like 2 years ago I never got yanking to the system clip board to work. Googling around there are a lot of weird hacks people seem to be using, hope this finds someone who needs it.
I happened across this in the remains of my kickstart.nvim README file:
External Requirements:
...
- Clipboard tool (xclip/xsel/win32yank or other depending on platform)
...
Since I'm on Wayland this means using wl-clipboard, which I just added to my system packages:
environment.systemPackages = [
pkgs.wl-clipboard
];
Once I installed that this line telling Neovim to use the system clipboard started working:
vim.opt.clipboard = 'unnamedplus'
That's what I get for not RTFM.
Good for a yank, eh?