diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua index 1da1c17..2e74d52 100644 --- a/.config/nvim/lua/config/options.lua +++ b/.config/nvim/lua/config/options.lua @@ -45,6 +45,10 @@ vim.opt.signcolumn = "yes" -- always show the signcolumn to minimize distraction -- vim.cmd(":autocmd InsertLeave * set cul") -- Turn color back on when exiting insert mode -- vim.cmd("set guicursor=i:block") -- Always use block cursor. In some terminals and fonts (like iTerm), it can be hard to see the cursor when it changes to a line. +-- Forces the OSC 52 clipboard provider. Needs a terminal emulator that +-- supports it (like iTerm, Alacritty). See :help clipboard-osc52 for details +vim.g.clipboard = 'osc52' + -- Copy all yanked/deleted lines to the "+" buffer. Useful when you want to use -- the OS clipboard. vim.cmd("set clipboard=unnamedplus") diff --git a/docs/changelog.rst b/docs/changelog.rst index 91d0ffc..8f768ad 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,12 +1,16 @@ Changelog ========= + 2026-05-07 ---------- **vim** -Color the cursorline in toggleterm terminal when it's not in insert mode. Gives -a visual reminder of when typing won't do what you expect. +- Color the cursorline in toggleterm terminal when it's not in insert mode. + Gives a visual reminder of when typing won't do what you expect. +- Configure OSC 52 globally in nvim so that yanked text goes to the system + clipboard, even on remote systems. + **setup**