From 99c333eb2b0b5872a514a17fe8cb007a06ac6f20 Mon Sep 17 00:00:00 2001 From: aceaiaid <“aceaiaid@gmail.com”> Date: Mon, 8 Apr 2024 10:42:08 -0700 Subject: [PATCH] feat: copy from WSL2 ubuntu to Windows clipboard --- init.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/init.lua b/init.lua index 2514f9e..0b671c7 100644 --- a/init.lua +++ b/init.lua @@ -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, +}