neovim copy to clipboard kitty #6640
Replies: 2 comments 12 replies
-
https://sw.kovidgoyal.net/kitty/faq/#how-do-i-map-key-presses-in-kitty-to-different-keys-in-the-terminal-program
Though if you want cmd+c to copy in neovim map it to yank in neovim.
|
Beta Was this translation helpful? Give feedback.
-
@gaurishhs @kovidgoyal vim.opt.clipboard = ""
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('*'),
},
} Note that due to Kitty's prompt for manual confirmation whenever pasting from the system clipboard, I don't recommend setting I recommend adding this to kitty docs somewhere, so people don't have to ask about it in issues/discussion/reddit. I'm using:
|
Beta Was this translation helpful? Give feedback.
-
hi, i am unable to copy text from neovim editor to my clipboard. i even have a mapping setup in kitty.conf for
copy_to_clipboard
this is my currentkitty.conf
however pressing
y
works. is there a way to map cmd+c to send y to neovim?Beta Was this translation helpful? Give feedback.
All reactions