Skip to content

Commit ffd2bcd

Browse files
committed
chore(clip): use unnamed clip for now instead of clipboard
1 parent 28a3577 commit ffd2bcd

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

lua/modules.lua

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ autocmd("CursorHold", {
7171
})
7272

7373
-- Copy last yanked text to clipboard on focusLost
74-
autocmd('FocusLost', {
75-
desc = "Copy to clipboard on FocusLost",
76-
callback = function()
77-
vim.fn.setreg("+", vim.fn.getreg("0"))
78-
end,
79-
})
74+
-- disabling for now
75+
-- autocmd('FocusLost', {
76+
-- desc = "Copy to clipboard on FocusLost",
77+
-- callback = function()
78+
-- vim.fn.setreg("+", vim.fn.getreg("0"))
79+
-- end,
80+
-- })
8081

8182
return M

lua/opts.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local opts = {}
44

55
opts.initial = function()
66
opt.laststatus = 3
7-
-- opt.clipboard = "unnamedplus"
7+
opt.clipboard = "unnamedplus"
88
opt.termguicolors = true
99
opt.fillchars:append { eob = " " }
1010
opt.shortmess:append "aIF"

0 commit comments

Comments
 (0)