From 812dd657ab7c4603e7e54f41c3cb2b7662259243 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 15 Aug 2025 19:22:53 +0900 Subject: nvim: prefer tmux as clipboard provider in tmux --- .config/nvim/lua/init/01-options.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/nvim/lua/init/01-options.lua b/.config/nvim/lua/init/01-options.lua index 14255ea..41f7e61 100644 --- a/.config/nvim/lua/init/01-options.lua +++ b/.config/nvim/lua/init/01-options.lua @@ -78,6 +78,10 @@ O.confirm = true -- Selecting text {{{1 O.clipboard = 'unnamed' +-- Prefer 'tmux' to 'wl-copy' or 'pbcopy' if in tmux. +if vim.env.tmux then + vim.g.clipboard = 'tmux' +end -- Editing text {{{1 -- cgit v1.2.3-70-g09d2