init: sync clipboard between system and nvi

This commit is contained in:
kossLAN 2024-09-18 13:33:25 -04:00
parent 1ff99b9bc1
commit f53425d391
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8

View file

@ -46,6 +46,11 @@ opt.cmdheight = 0
opt.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
-- Sync clipboard with system
vim.schedule(function()
vim.opt.clipboard = 'unnamedplus'
end)
-- Configure Neovim diagnostic messages
local function prefix_diagnostic(prefix, diagnostic)