Skip to content

nvim palette unreadable on some servers: near-black text on near-black background #53

Description

@YASoftwareDev

On some servers, opening nvim gives an unreadable palette: the text is almost
black on an almost black background.

Reported by the operator 2026-09-18. Not yet reproduced or root-caused.

Suspects, in the order they will be checked

  1. nvim/.config/nvim/init.lua:675 sets opt.termguicolors = true
    unconditionally. A terminal chain that cannot carry 24-bit colour then gets
    RGB escapes anyway, and the active scheme (nightfly) defines its colours
    almost entirely as guifg/guibg - so a failed RGB path leaves very dark
    navy on very dark grey, which is the reported symptom.
  2. tmux/.tmux.conf.local:342-343 sets default-terminal "tmux-256color" and
    adds the Tc truecolor override only for an outer xterm-256color. Two ways
    that misses: a host whose terminfo database has no tmux-256color entry
    (older ncurses), and an outer terminal that reports anything else.

What has to be measured before changing anything

Per host: whether terminfo carries tmux-256color, the tmux version (Tc
needs >= 2.2), the nvim version, and what nvim actually resolves Normal to.
Which hosts show the problem, and whether it happens inside tmux, outside it,
or both.

Acceptance

A host that cannot carry truecolor must still render a readable buffer, and the
fix must be proven by a red-proof: reproduce the unreadable state, apply the
change, show the same environment rendering readable colours.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions