From e35efaac08f25805eed23a220d8ddcfbc45ae297 Mon Sep 17 00:00:00 2001 From: Viorel Binciu Date: Tue, 3 Dec 2024 13:38:20 +0200 Subject: [PATCH] feat: Adjusted clipboard --- lua/config/options.lua | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index eddae9d..dfa7a2c 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -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" })