ojroques / nvim-osc52

A Neovim plugin to copy text through SSH with OSC52
BSD 2-Clause "Simplified" License
351 stars 12 forks source link

neovim 0.10.1 setting force the OSC clipboard doesn't work #40

Closed ipstone closed 1 month ago

ipstone commented 2 months ago

hello,

I tried to add this to my nvim settings:

    vim.g.clipboard = {
      name = 'OSC 52',
      copy = {
        ['+'] = require('vim.ui.clipboard.osc52').copy('+'),
        ['*'] = require('vim.ui.clipboard.osc52').copy('*'),
      },
      paste = {
        ['+'] = require('vim.ui.clipboard.osc52').paste('+'),
        ['*'] = require('vim.ui.clipboard.osc52').paste('*'),
      },
    }

But it doesn't seem being able to copy to system's clipboard ... I am using iTerm2, tmux 3.4.

Thoughts?

thanks!

ojroques commented 1 month ago

Hello,

You are using the built-in OSC52 provider which is not related to this plugin. Check the manual to configure it: :help clipboard-osc52.