Closed AlJohri closed 6 months ago
Hello!
The two usages are different. The first one creates mapping that calls the plugin directly.
The second one instructs Neovim that to copy the system clipboard, it should use the plugin. Therefore in this scenario, the '+' clipboard (which is used to copy to the system clipboard) will call the plugin instead.
Note that if you are using a recent version of Neovim, the second usage is natively integrated to Neovim and you don't need this plugin to copy through SSH. And this feature is enabled by default is some conditions are met, see :h clipboard-osc52
. Then when do "+y
, it will copy even via SSH.
I'm closing this issue but feel free to reopen it if you still have issues.
hi! relatively new to neovim here and trying to understand the difference between the two usages described in the readme
I see one usage looks like this:
and the other looks via "clipboard provider" looks like:
Questions:
copy
andpaste
functions within the library itself so users don't need to specify them when using clipboard provider approach? sort of like what will come in neovim 0.10require('vim.clipboard.osc52').copy
?