fix clipboard

This commit is contained in:
xfy
2024-11-22 10:30:35 +08:00
parent be9260c734
commit bb0d08526c

View File

@ -37,7 +37,11 @@ opt.autowrite = true -- Enable auto write
opt.autoread = true
-- only set clipboard if not in ssh, to make sure the OSC 52
-- integration works automatically. Requires Neovim >= 0.10.0
opt.clipboard = vim.env.SSH_TTY and "" or "unnamedplus" -- Sync with system clipboard
if not vim.env.SSH_TTY then
opt.clipboard = "unnamedplus"
end
-- opt.clipboard = vim.env.SSH_TTY and "" or "unnamedplus" -- Sync with system clipboard
opt.completeopt = "menu,menuone,noselect"
opt.conceallevel = 2 -- Hide * markup for bold and italic, but not markers with substitutions
opt.confirm = true -- Confirm to save changes before exiting modified buffer