Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Windows Terminal
The new Windows Terminal and the original Windows console host, all in the same place!
Thanks for your swift reply! I've first tried the method referred to in https://github.com/ojroques/nvim-osc52/issues/1 to no avail. Now I'm using it the way you have configured it in your personal config and it doesn't work as well 🤷♂ This is the config: lua use({ 'ojroques/nvim-osc52', config = function() require('osc52').setup() local copy = function(lines, _) require('osc52').copy(table.concat(lines, '\n')) end local paste = function() return { vim.fn.split(vim.fn.getreg(''), '\n'), vim.fn.getregtype('') } end vim.g.clipboard = { name = 'osc52', copy = { ['+'] = copy, ['*'] = copy }, paste = { ['+'] = paste, ['*'] = paste }, } vim.api.nvim_create_autocmd('TextYankPost', { callback = function() vim.highlight.on_yank() end }) end }) Tmux is configured with set-option -s set-clipboard on Terminal is WezTerm which should be supported.
The plugin itself is a rewrite in Lua of another plugin of mine, vim-oscyank with a clean-up of the code logic (and it allows me to remove one more Vimscript plugin from my config :p)
The plugin itself is a rewrite in Lua of another plugin of mine, vim-oscyank with a clean-up of the code logic (and it allows me to remove one more Vimscript plugin from my config :p)
You mean you copy text outside of Neovim and you want to paste it with p inside Neovim with the help of the plugin? The plugin does not support that, because most terminal emulators also don't: letting apps read the clipboard whenever they want with OSC52 can be a security issue. For instance for windows terminal: https://github.com/microsoft/terminal/issues/9479.