feat: copy from WSL2 ubuntu to Windows clipboard

pull/59/head
aceaiaid 2024-04-08 10:42:08 -07:00
parent 75625b29e8
commit 99c333eb2b
1 changed files with 15 additions and 0 deletions

View File

@ -1,2 +1,17 @@
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
-- to copy from WSL2 ubuntu to Windows
vim.opt.clipboard = "unnamedplus"
vim.g.clipboard = {
name = "win32yank-wsl",
copy = {
["+"] = "/mnt/d/64/win32yank.exe -i --crlf",
["*"] = "/mnt/d/64/win32yank.exe -i --crlf",
},
paste = {
["+"] = "/mnt/d/64/win32yank.exe -o --lf",
["*"] = "/mnt/d/64/win32yank.exe -o --lf",
},
cache_enabled = 0,
}