mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
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.
(cherry picked from commit a33284c2c0
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
99817471d7
commit
d70d469c04
@@ -318,9 +318,11 @@ local function check_tmux()
|
|||||||
'$TERM differs from the tmux `default-terminal` setting. Colors might look wrong.',
|
'$TERM differs from the tmux `default-terminal` setting. Colors might look wrong.',
|
||||||
{ '$TERM may have been set by some rc (.bashrc, .zshrc, ...).' }
|
{ '$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(
|
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"',
|
'Set default-terminal in ~/.tmux.conf:\nset-option -g default-terminal "screen-256color"',
|
||||||
suggest_faq,
|
suggest_faq,
|
||||||
|
Reference in New Issue
Block a user