diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-15 19:22:53 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 19:22:59 +0900 |
| commit | 812dd657ab7c4603e7e54f41c3cb2b7662259243 (patch) | |
| tree | e60d7fb69a5777c289c99b7c7bdb2245796d0e0f | |
| parent | 373a24c301d528c4e7f8be7d5cdc9d6d8deb5ced (diff) | |
| download | dotfiles-812dd657ab7c4603e7e54f41c3cb2b7662259243.tar.gz dotfiles-812dd657ab7c4603e7e54f41c3cb2b7662259243.tar.zst dotfiles-812dd657ab7c4603e7e54f41c3cb2b7662259243.zip | |
nvim: prefer tmux as clipboard provider in tmux
| -rw-r--r-- | .config/nvim/lua/init/01-options.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
