Skip to content

Instantly share code, notes, and snippets.

View mousebyte's full-sized avatar

Abigail Teague mousebyte

View GitHub Profile
@mousebyte
mousebyte / coc-discord-rpc-wsl-passthrough.md
Last active March 4, 2024 08:34
coc-discord-rpc on WSL: passthrough to Discord on host Windows

Using coc-discord-rpc on WSL

You can use [npiperelay][] to let coc-discord-rpc connect to a Discord instance running on the host Windows operating system. It requires modifying the extension a bit, but it's relatively painless. This guide assumes you have [coc.nvim][] and [coc-discord-rpc][] already installed.

Get npiperelay and socat

To build npiperelay, you'll need [Go][]. Grab the golang package from your favorite package manager and follow the instructions on the [npiperelay][] repo. You'll also need to install socat if it doesn't come with your distribution.