From 7f00267ec8b24d5b10a33fa974fbe56cd233f0ae Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 24 Jan 2023 17:53:34 +0100 Subject: [PATCH] use wsl clipboard manager from help --- lua/config/options.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index 1f93e19..e3c913a 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -38,12 +38,12 @@ if vim.fn.has("wsl") == 1 then vim.g.clipboard = { name = 'WslClipboard', copy = { - ['+'] = 'win32yank.exe -i --crlf', - ['*'] = 'win32yank.exe -i --crlf', - }, + ['+'] = 'clip.exe', + ['*'] = 'clip.exe', + }, paste = { - ['+'] = 'win32yank.exe -o --lf', - ['*'] = 'win32yank.exe -o --lf', + ['+'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))', + ['*'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))', }, cache_enabled = 0, }