feat(clipboard): fix clipboard for ssh+tmux

Fix clipboard when attaching to a tmux session
over SSH.
This commit is contained in:
2024-03-29 01:17:37 +01:00
parent 2f6ff745c8
commit 7b433addc4
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ local module_name = "base"
local utils = require("utils") local utils = require("utils")
local files = { local files = {
"env",
"globals", "globals",
"options", "options",
"autocommands", "autocommands",
+4
View File
@@ -0,0 +1,4 @@
-- 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