13 lines
478 B
Lua
13 lines
478 B
Lua
-- clipboard.lua will be edited by the bash command
|
|
-- it will be replaced with one of the files from templates/clipboard/ directory
|
|
vim.o.clipboard = "unnamedplus"
|
|
|
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
|
callback = function()
|
|
local copy_to_unnamedplus = require("vim.ui.clipboard.osc52").copy("+")
|
|
copy_to_unnamedplus(vim.v.event.regcontents)
|
|
local copy_to_unnamed = require("vim.ui.clipboard.osc52").copy("*")
|
|
copy_to_unnamed(vim.v.event.regcontents)
|
|
end,
|
|
})
|