commit a33284c2c068a9204330bc941e274b1f5bd9f5c6
parent 729111d3a3cd4939b3c24925cf1e0d7befec483e
Author: Meriel Luna Mittelbach <lunarlambda@gmail.com>
Date: Thu, 28 Aug 2025 05:01:07 +0200
fix(health): accept TERM=tmux-direct #35511
tmux-direct is functionally the same as tmux-256color, except it
directly reports 24-bit color and how to set them (setaf/setab)
via ncurses 6.x's extended terminfo format.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/runtime/lua/vim/health/health.lua b/runtime/lua/vim/health/health.lua
@@ -323,9 +323,11 @@ local function check_tmux()
'$TERM differs from the tmux `default-terminal` setting. Colors might look wrong.',
{ '$TERM may have been set by some rc (.bashrc, .zshrc, ...).' }
)
- elseif not vim.regex([[\v(tmux-256color|screen-256color)]]):match_str(vim.env.TERM) then
+ elseif
+ not vim.regex([[\v(tmux-256color|tmux-direct|screen-256color)]]):match_str(vim.env.TERM)
+ then
health.error(
- '$TERM should be "screen-256color" or "tmux-256color" in tmux. Colors might look wrong.',
+ '$TERM should be "screen-256color", "tmux-256color", or "tmux-direct" in tmux. Colors might look wrong.',
{
'Set default-terminal in ~/.tmux.conf:\nset-option -g default-terminal "screen-256color"',
suggest_faq,