clipboard

This commit is contained in:
Christian Nieves
2023-09-15 17:43:45 +00:00
parent 31f07ddc5e
commit d8414570a1
3 changed files with 26 additions and 24 deletions

View File

@ -9,11 +9,11 @@ return {
return { vim.fn.split(vim.fn.getreg(""), "\n"), vim.fn.getregtype("") }
end
-- vim.g.clipboard = {
-- name = "osc52",
-- copy = { ["+"] = copy, ["*"] = copy },
-- paste = { ["+"] = paste, ["*"] = paste },
-- }
vim.g.clipboard = {
name = "osc52",
copy = { ["+"] = copy, ["*"] = copy },
paste = { ["+"] = paste, ["*"] = paste },
}
-- Now the '+' register will copy to system clipboard using OSC52
vim.keymap.set("n", "<leader>y", '"+y')

View File

@ -172,7 +172,6 @@ function! s:AddBufferToTab()
tabfirst
endfun
filetype plugin indent on
syntax on