return { "ojroques/nvim-osc52", config = function() require('osc52').setup { max_length = 0, -- Maximum length of selection (0 for no limit) silent = false, -- Show message when copied trim = false, -- Trim surrounding whitespaces before copy } -- Key mappings vim.keymap.set('n', 'y', require('osc52').copy_operator, {expr = true}) vim.keymap.set('n', 'yy', 'y_', {remap = true}) vim.keymap.set('v', 'y', require('osc52').copy_visual) end, }