clipboard fixes for tmux and nvim

This commit is contained in:
Anton Volnuhin 2026-04-09 02:21:29 +03:00
parent 10c759e3a9
commit 87bcad6c6d
2 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,7 @@ bind C-a send-prefix -2
# reload configuration # reload configuration
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
set -g default-terminal "tmux-256color" set -g default-terminal "tmux-256color"
set -s set-clipboard external set -s set-clipboard on
set -s extended-keys always set -s extended-keys always
set -s extended-keys-format csi-u set -s extended-keys-format csi-u
set -as terminal-features ",xterm-kitty:RGB" set -as terminal-features ",xterm-kitty:RGB"
@ -28,8 +28,6 @@ set -as terminal-features ",xterm-256color:extkeys"
set -as terminal-features ",xterm-kitty:hyperlinks" set -as terminal-features ",xterm-kitty:hyperlinks"
set -as terminal-features ",xterm-ghostty:hyperlinks" set -as terminal-features ",xterm-ghostty:hyperlinks"
set -as terminal-features ",xterm-256color:hyperlinks" set -as terminal-features ",xterm-256color:hyperlinks"
set -as terminal-overrides ",xterm-256color:Ms=\E]52;c;%p2%s\007"
set -as terminal-overrides ",screen-256color:Ms=\E]52;c;%p2%s\007"
set -g allow-passthrough on set -g allow-passthrough on
set-window-option -g mode-keys vi set-window-option -g mode-keys vi

View File

@ -159,6 +159,7 @@ require("mini.surround").setup()
require("mini.cursorword").setup() require("mini.cursorword").setup()
-- require("mini.completion").setup() -- require("mini.completion").setup()
vim.opt.clipboard = "unnamedplus"
vim.g.clipboard = { vim.g.clipboard = {
name = "OSC 52", name = "OSC 52",
copy = { copy = {