feat: Adjusted clipboard

This commit is contained in:
Viorel Binciu 2024-12-03 13:38:20 +02:00
parent 627cf397a9
commit e35efaac08
No known key found for this signature in database
GPG key ID: AC875EA6A34E7770

View file

@ -3,15 +3,20 @@
-- Add any additional options here
-- Clipboard copy --
vim.g.clipboard = {
name = "wslclipboard",
copy = {
["+"] = "wsl.exe clip.exe",
["*"] = "wsl.exe clip.exe",
},
paste = {
["+"] = "wsl.exe powershell.exe Get-Clipboard -Raw",
["*"] = "wsl.exe powershell.exe Get-Clipboard -Raw",
},
cache_enabled = 0,
}
-- WSL clipboard copy
-- vim.g.clipboard = {
-- name = "wslclipboard",
-- copy = {
-- ["+"] = "wsl.exe clip.exe",
-- ["*"] = "wsl.exe clip.exe",
-- },
-- paste = {
-- ["+"] = "wsl.exe powershell.exe Get-Clipboard -Raw",
-- ["*"] = "wsl.exe powershell.exe Get-Clipboard -Raw",
-- },
-- cache_enabled = 0,
-- }
-- vim.opt.clipboard:append { 'unnamedplus' }
-- MAC OS Clipboard copy --
vim.opt.clipboard:append({ "unnamedplus" })