hluk / hluk/CopyQ

Problem with using Copyq with Neovim in WSL2

Open
#2,469 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
12.3k
Forks
593
Avg merge
2d 8h
Merged PRs (30d)
9

Description

Description:
I installed Neovim in Ubuntu 22.04 LTS in WSL2 and used the recommended official clipboard-provider setting to enable clipboard connect with Windows, but found that copied Chinese text from Neovim would become garbled. However, exiting Copyq did not cause any problems. I suspect that Copyq is responsible.

I added the following clipboard-provider setting in init.lua in Neovim:
```
vim.g.clipboard = {
name = "WslClipboard",
paste = {
["+"] = 'powershell.exe -c [Console]::Out.Write((Get−Clipboard−Raw).tostring().replace("‘r",""))′ ,
["∗"] = ′powershell.exe−c [Console]::Out.Write((Get-Clipboard -Raw).tostring().replace("`r", ""))',
},
copy = {
["+"] = "clip.exe",
["*"] = "clip.exe",
},
cache_enable = 0,
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.