We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4a2f8c commit b6ab548Copy full SHA for b6ab548
1 file changed
lua/custom/plugins/nvim-osc52.lua
@@ -0,0 +1,18 @@
1
+return {
2
+
3
+ 'ojroques/nvim-osc52',
4
+ config = function()
5
+ require('osc52').setup {
6
+ max_length = 0, -- Maximum length of selection (0 for no limit)
7
+ silent = false, -- Disable message on successful copy
8
+ trim = false, -- Trim surrounding whitespaces before copy
9
+ }
10
+ local function copy()
11
+ if (vim.v.event.operator == 'y' or vim.v.event.operator == 'd') and vim.v.event.regname == '' then
12
+ require('osc52').copy_register ''
13
+ end
14
15
16
+ vim.api.nvim_create_autocmd('TextYankPost', { callback = copy })
17
+ end,
18
+}
0 commit comments