improve clipboard support
This commit is contained in:
parent
9936f43124
commit
abac984a52
14
init.lua
14
init.lua
|
@ -14,11 +14,15 @@ vim.opt.scrolloff = 10
|
||||||
vim.opt.colorcolumn = '120'
|
vim.opt.colorcolumn = '120'
|
||||||
-- vim.opt.breakindent = true
|
-- vim.opt.breakindent = true
|
||||||
|
|
||||||
-- Sync clipboard between OS and Neovim.
|
-- TODO: replace with osc52 provider once iTerm2 supports it better
|
||||||
vim.schedule(function()
|
if vim.env.DISPLAY then
|
||||||
vim.opt.clipboard = 'unnamedplus'
|
if vim.fn.executable 'xclip' == 1 then
|
||||||
end)
|
vim.schedule(function()
|
||||||
vim.opt.mouse = 'nvi'
|
vim.opt.clipboard:append { 'unnamed', 'unnamedplus' }
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
vim.opt.mouse = 'nvi'
|
||||||
|
end
|
||||||
|
|
||||||
-- File related
|
-- File related
|
||||||
vim.opt.autochdir = false
|
vim.opt.autochdir = false
|
||||||
|
|
Loading…
Reference in New Issue