(nvim) mac clipboard update
This commit is contained in:
parent
9c4a2b8521
commit
aab1fb6119
1 changed files with 12 additions and 1 deletions
|
|
@ -31,7 +31,18 @@ if Utils.os.is_linux() then
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
elseif Utils.os.is_mac() then
|
elseif Utils.os.is_mac() then
|
||||||
vim.opt.clipboard:append { "unnamedplus" }
|
vim.g.clipboard = {
|
||||||
|
name = "mac-clipboard",
|
||||||
|
copy = {
|
||||||
|
['+'] = "pbcopy",
|
||||||
|
['*'] = "pbcopy",
|
||||||
|
},
|
||||||
|
paste = {
|
||||||
|
['+'] = "pbpaste",
|
||||||
|
['*'] = "pbpaste",
|
||||||
|
},
|
||||||
|
cache_enabled = 1,
|
||||||
|
}
|
||||||
elseif Utils.os.is_wsl() then
|
elseif Utils.os.is_wsl() then
|
||||||
vim.g.clipboard = {
|
vim.g.clipboard = {
|
||||||
name = "win32yank",
|
name = "win32yank",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue