We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c687104 commit fa73a37Copy full SHA for fa73a37
lua/modules.lua
@@ -69,4 +69,12 @@ autocmd("CursorHold", {
69
end,
70
})
71
72
+-- Copy last yanked text to clipboard on focusLost
73
+autocmd('FocusLost', {
74
+ desc = "Copy to clipboard on FocusLost",
75
+ callback = function()
76
+ vim.fn.setreg("+", vim.fn.getreg("0"))
77
+ end,
78
+})
79
+
80
return M
lua/opts.lua
@@ -4,7 +4,7 @@ local opts = {}
4
5
opts.initial = function()
6
opt.laststatus = 3
7
- opt.clipboard = "unnamedplus"
+ -- opt.clipboard = "unnamedplus"
8
opt.termguicolors = true
9
opt.fillchars:append { eob = " " }
10
opt.shortmess:append "aIF"
0 commit comments