feat(nvim): use osc52 copy for vim clipboard

See https://github.com/neovim/neovim/pull/25872
This commit is contained in:
Price Hiller 2023-11-09 15:05:47 -06:00
parent d85545c767
commit f63c87750e
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -2,6 +2,18 @@ local g = vim.g
local M = {}
M.setup = function() end
M.setup = function()
vim.g.clipboard = {
name = 'OSC 52',
copy = {
['+'] = require('vim.clipboard.osc52').copy,
['*'] = require('vim.clipboard.osc52').copy,
},
paste = {
['+'] = require('vim.clipboard.osc52').paste,
['*'] = require('vim.clipboard.osc52').paste,
},
}
end
return M