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", "c", require("osc52").copy_operator, { expr = true }) vim.keymap.set("n", "cc", "c_", { remap = true }) vim.keymap.set("x", "c", require("osc52").copy_visual)