Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'hi Whitespace' not applied correctly in v0.10.0 #28934

Closed
brownd-oclc opened this issue May 23, 2024 · 2 comments
Closed

'hi Whitespace' not applied correctly in v0.10.0 #28934

brownd-oclc opened this issue May 23, 2024 · 2 comments
Labels
closed:question issues that are closed as usage questions

Comments

@brownd-oclc
Copy link

brownd-oclc commented May 23, 2024

Problem

I looked around, but couldn't find an open issue for this. It seems like a fairly obvious issue, so sorry if I missed something.

Changing hi Whitespace in Nvim 0.10.0 seems to always apply the same style. Nvim 0.9.5 worked as expected.

Steps to reproduce

nvim-0.10.0 --clean file.md
:set list
:hi Whitespace ctermfg=Green ctermbg=Grey

image

Expected behavior

nvim-0.9.5 --clean file.md
:set list
:hi Whitespace ctermfg=Green ctermbg=Grey

image

Neovim version (nvim -v)

v0.10.0 release

Vim (not Nvim) behaves the same?

N/A

Operating system/version

RHEL8

Terminal name/version

iTerm

$TERM environment variable

xterm-256color

Installation

0.10.0 from https://github.com/neovim/neovim-releases

@brownd-oclc brownd-oclc added the bug issues reporting wrong behavior label May 23, 2024
@clason
Copy link
Member

clason commented May 23, 2024

Check if termguicolors is set (which is now detected automatically). If it is, you need to set guifg and guibg instead (or in addition).

@brownd-oclc
Copy link
Author

Thanks for the quick comment!

termguicolors seems to what's happening. :set notermguicolors restores the previous behavior, and using guifg and guibg behaves as expected otherwise.

@wookayin wookayin added bug issues reporting wrong behavior closed:question issues that are closed as usage questions and removed bug issues reporting wrong behavior labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed:question issues that are closed as usage questions
Projects
None yet
Development

No branches or pull requests

3 participants