use wsl clipboard manager from help

This commit is contained in:
Oliver Hartmann 2023-01-24 17:53:34 +01:00
parent 9e8672038e
commit 7f00267ec8

View File

@ -38,12 +38,12 @@ if vim.fn.has("wsl") == 1 then
vim.g.clipboard = { vim.g.clipboard = {
name = 'WslClipboard', name = 'WslClipboard',
copy = { copy = {
['+'] = 'win32yank.exe -i --crlf', ['+'] = 'clip.exe',
['*'] = 'win32yank.exe -i --crlf', ['*'] = 'clip.exe',
}, },
paste = { paste = {
['+'] = 'win32yank.exe -o --lf', ['+'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
['*'] = 'win32yank.exe -o --lf', ['*'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
}, },
cache_enabled = 0, cache_enabled = 0,
} }