Files
nvim/lua/core/env.lua
T
warg 7b433addc4 feat(clipboard): fix clipboard for ssh+tmux
Fix clipboard when attaching to a tmux session
over SSH.
2024-03-29 01:17:37 +01:00

5 lines
143 B
Lua

-- Tell neovim to prefer tmux as clipboard over xsel/xclip.
if vim.fn.getenv("TMUX") ~= vim.NIL then
vim.fn.setenv("DISPLAY", vim.NIL)
end