Skip to content

no colorschemes set terminal buffer highlights when &termguicolors is on #20636

@craigmac

Description

@craigmac

Neovim version (nvim -v)

0.9.0-dev-82-g0ef6aaa3a

Vim (not Nvim) behaves the same?

No, 9.0.049

Operating system/version

macOS 12.5.1

Terminal name/version

wezterm, Terminal.app

$TERM environment variable

xterm-256color, nsterm-256color

Installation

build from repo

How to reproduce the issue

nvim --clean
set termguicolors
colorscheme blue
:terminal

Expected behavior

Terminal buffers should follow the g:terminal_ansi_colors defined in a colorscheme when termguicolors is on. When termguicolors is off, there's no problem.

Actual behavior

After setting termguicolors and loading any colorscheme, then opening a new terminal buffer, we don't get the terminal 0-15 values defined in the colorscheme, so that terminal buffers match the colorscheme - this was their intention and which works in Vim, but not neovim because they don't set neovim's g:terminal_color_{0-15} variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions