nvim: install osc52

This commit is contained in:
Daniel Lundin 2022-10-07 11:47:20 +02:00
parent 9f2d575cc3
commit d725563605
2 changed files with 17 additions and 0 deletions

View file

@ -196,6 +196,13 @@ return require("packer").startup(function()
end,
})
use({
"ojroques/nvim-osc52",
config = function()
require("plugins/osc52")
end,
})
-- marks
use({
"chentoast/marks.nvim",

View file

@ -0,0 +1,10 @@
local osc52 = require("osc52")
osc52.setup({
max_length = 0, -- Maximum length of selection (0 for no limit)
silent = false, -- Disable message on successful copy
trim = false, -- Trim text before copy
})
vim.keymap.set("n", "<leader>c", require("osc52").copy_operator, { expr = true })
vim.keymap.set("n", "<leader>cc", "<leader>c_", { remap = true })
vim.keymap.set("x", "<leader>c", require("osc52").copy_visual)