A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/issues/17420 below:

No way to clear foreground color for DiffDelete with `nvim_set_hl` · Issue #17420 · neovim/neovim · GitHub

Neovim version (nvim -v)

NVIM v0.7.0-dev+1092-g238b944e5

Vim (not Nvim) behaves the same?

Not relevant (neovim api)

Operating system/version

Ubuntu 20.04.3

Terminal name/version

kitty 0.24.1

$TERM environment variable

xterm-kitty

Installation

Build from source

How to reproduce the issue

Build neovim from source and try to change DiffDelete highlight group with:

:lua vim.api.nvim_set_hl(0, "DiffDelete", { fg = nil, bg = "#ff0000" }) or
:lua vim.api.nvim_set_hl(0, "DiffDelete", { fg = "NONE", bg = "#ff0000" }) or
:lua vim.api.nvim_set_hl(0, "DiffDelete", { fg = -1, bg = "#ff0000" })

Expected behavior

I would expect at least one of those ways would clear the foreground color of DiffDelete

Actual behavior

It remains Blue like it is by default.

Additional context

I also tried looking in the docs for other ways to only clear the foreground color with the api.
Note that: :hi! DiffDelete guifg=NONE guibg=#ff0000 works correctly and removes the foreground color


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4