Comments (3)
Hello!
You have two options:
- Set the clipboard provider of Neovim to use the plugin, see the instructions here. Basically it tells Neovim that your "+" register should now call the plugin. The most natural solution in my opinion but you'd need to change your mappings to use the "+" register.
- Keep your autocmd but call this function instead:
Line 79 in 99fcb75
function copy()
if vim.v.event.operator == 'y' and vim.v.event.regname == 'c' then
require('osc52').copy_register('c')
end
end
vim.api.nvim_create_autocmd('TextYankPost', {callback = copy})
from nvim-osc52.
Thanks! The second option is exactly what I was looking for. I like it that way because I liked having an easy to use second register (Control-c/x/v) and I didn't want to oscyank every time. Now that i think about more though, maybe using the plus register for that makes more sense, and I can just not copy to plus with the unnamed register.
Either way, thanks for the help and the incredibly useful plugin!
from nvim-osc52.
Glad you find it useful!
from nvim-osc52.
Related Issues (20)
- osc52.copy_visual is copying one more character than selected HOT 7
- Copying gets broken on long text HOT 2
- Default leader copy command cuts buffer text HOT 1
- Feature: Query and paste from the clipboard HOT 7
- disable printing status, return status, <leader>cc not working. HOT 2
- dooes not work on WSL1 config tips? HOT 2
- Issues on displaying yanked region with vim-highlightedyank HOT 1
- Doesn't work inside tmux HOT 3
- copy_visual does not respect reselect-visual (gv) HOT 2
- osc52.lua line 43: attempt to index global 'visual_marks' (a nil value) HOT 1
- Why is the first yank after opening NVIM 0 characters? HOT 5
- Yank behavior on a remote machine: `yy` does not yank, but `"*yy` yanks HOT 4
- Copying does not overwrite HOT 2
- auto copy contents from register not working as expected HOT 2
- Can't make it work with Mosh HOT 5
- failed to copy text with mouse after using nvim-osc52 inside the tmux in kitty HOT 1
- Can I paste from local system clipboard to remote neovim by "p"? HOT 3
- Example configuration behaves unexpectedly (LazyVim) HOT 4
- difference between using as a clipboard provider vs not? HOT 2
- osc52.copy always writes to /dev/fd/2 because vim.fn.filewritable always succeeds, even when the file does not exist HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-osc52.