Move custom modules

This commit is contained in:
40DEEA 2025-10-30 15:20:40 -07:00
parent dde8a5ed26
commit 383bf939b9
4 changed files with 2 additions and 4 deletions

View file

@ -0,0 +1,20 @@
return {
'ojroques/nvim-osc52',
event = 'VeryLazy',
opts = { max_length = 0, silent = true },
config = function(_, opts)
require('osc52').setup(opts)
-- Send *any* yank to the local clipboard automatically
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
if vim.v.event.operator == 'y' then
require('osc52').copy_register(vim.v.event.regname == '' and '"' or vim.v.event.regname)
end
end,
})
-- Optional: explicit mappings
vim.keymap.set({ 'n', 'x' }, '<leader>y', require('osc52').copy_visual, { desc = 'Yank→local clipboard' })
end,
}