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 9936f43 commit abac984Copy full SHA for abac984
init.lua
@@ -14,11 +14,15 @@ vim.opt.scrolloff = 10
14
vim.opt.colorcolumn = '120'
15
-- vim.opt.breakindent = true
16
17
--- Sync clipboard between OS and Neovim.
18
-vim.schedule(function()
19
- vim.opt.clipboard = 'unnamedplus'
20
-end)
21
-vim.opt.mouse = 'nvi'
+-- TODO: replace with osc52 provider once iTerm2 supports it better
+if vim.env.DISPLAY then
+ if vim.fn.executable 'xclip' == 1 then
+ vim.schedule(function()
+ vim.opt.clipboard:append { 'unnamed', 'unnamedplus' }
22
+ end)
23
+ end
24
+ vim.opt.mouse = 'nvi'
25
+end
26
27
-- File related
28
vim.opt.autochdir = false
0 commit comments