From 635e1f61a7468ed050e0ee309e2f6d57a049b7d8 Mon Sep 17 00:00:00 2001 From: Ryan Dale <115406+daler@users.noreply.github.com> Date: Fri, 8 May 2026 10:06:43 -0400 Subject: [PATCH 1/2] add config option for osc52 clipboard --- .config/nvim/lua/config/options.lua | 4 ++++ 1 file changed, 4 insertions(+) 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") From ac65f2de161428996d086401f5f5659305df778e Mon Sep 17 00:00:00 2001 From: Ryan Dale <115406+daler@users.noreply.github.com> Date: Fri, 8 May 2026 13:43:07 -0400 Subject: [PATCH 2/2] update changelog --- docs/changelog.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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**