mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 12:31:04 +00:00
feat: Adjusted clipboard
This commit is contained in:
parent
627cf397a9
commit
e35efaac08
1 changed files with 17 additions and 12 deletions
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue