color problem

36 views
Skip to first unread message

Robin

unread,
Nov 27, 2023, 4:12:22 AM11/27/23
to tmux-...@googlegroups.com
Hello there,
I'm using tmux with nvim, whenver I launch nvim inside tmux the
background color changes to black. I've set-up alacritty and nvim with
nightly colorsheme, when openeing nvim normally with tmux sessions the
nightly colorsheme works ok.
Thanks for help in advance 🙂

christophe lalanne

unread,
Nov 27, 2023, 4:26:51 AM11/27/23
to tmux-...@googlegroups.com
It might well be related to https://github.com/neovim/neovim/issues/17070.

I have the following in my init.lua, and it works with tmux 3.2a:

if vim.env.TMUX then
vim.loop.fs_write(2, "\27Ptmux;\27\27]11;?\7\27\\", -1, nil)
end

This assumes that your colorscheme doesn't set the background color for
you.
>--
>You received this message because you are subscribed to the Google Groups "tmux-users" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
>To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/ef617bdf-9fc3-4466-8805-48ba9dde5c9d%40gmail.com.

--
christophe lalanne
152E3E3F7C4CCE44
https://aliquote.org
Reply all
Reply to author
Forward
0 new messages