With a recent #WSL #Ubuntu update, my #neovim started blowing up when I tried to paste in #neovim
I use #tmux so I don't care about all the #Windows clipboard hoo-ha others use. I just need cut and paste within tmux to work.
Unfortunately, because today in #WSLg you get Wayland but without the wayland server and commensurate socket, @neovim sees $WAYLAND_DISPLAY set, tries to run wl-copy and KABOOM.
Here's the bodge I'm using. If we detect WSL, we unset WAYLAND_DISPLAY so I can work but also add a 'wway' alias in case I want to futz around with Wayland GUI apps.
Under WSL, we KINDA have Wayland, but not really, and that blows up Neovim. Ungh. :)
Add an alias so if we actually WANT the pseudo wayland, we can haz.
if [[ $(uname -r | grep "microsoft") ]] then
unset WAYLAND_DISPLAY
alias wway='export WAYLAND_DISPLAY=wayland-0'
fi