WSL2 copy to system clipboard

I tried following this FAQ · neovim/neovim Wiki · GitHub but did not work


upon reading the original stackoverflow post that mentions this neovim wiki page, there is a comment that mentions if you install other clip things then it will override it or something.

" you should specifically configure neovim to use win32yank.exe . The issue being that if you have now (or later install) any of the other options with a higher priority ( xclip , etc.) then they will take precedence and your clipboard will not work/stop working."

To fix this i had to

sudo apt remove xclip clip