diff --git a/dots/.config/nvim/lua/core/globals.lua b/dots/.config/nvim/lua/core/globals.lua index c2b1b82c..7567393a 100755 --- a/dots/.config/nvim/lua/core/globals.lua +++ b/dots/.config/nvim/lua/core/globals.lua @@ -2,6 +2,18 @@ local g = vim.g local M = {} -M.setup = function() end +M.setup = function() + vim.g.clipboard = { + name = 'OSC 52', + copy = { + ['+'] = require('vim.clipboard.osc52').copy, + ['*'] = require('vim.clipboard.osc52').copy, + }, + paste = { + ['+'] = require('vim.clipboard.osc52').paste, + ['*'] = require('vim.clipboard.osc52').paste, + }, + } +end return M