-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Labels
apilibnvim, Nvim RPC APIlibnvim, Nvim RPC APIhas:reproissue contains minimal reproducing stepsissue contains minimal reproducing steps
Description
Neovim version (nvim -v)
NVIM v0.7.0-dev+1392-gdaa8ac051
Installation
GitHub nightly builds
How to reproduce the issue
nvim --clean
:lua =vim.api.nvim_get_hl_by_name("Normal", true)prints:
{
[true] = 6
}- Set highlight via
lua vim.api.nvim_set_hl(0, "Normal", { fg = "#ff0000", bg = "#202020" }). 1) prints:
{
[true] = 6
}- Set highlight via
:hi Normal guifg=#ff0000 guibg=#202020. 1) prints:
{
background = 2105376,
foreground = 16711680
}Note: This behavior might be specific to the Normal group.
Expected behavior
nvim_get_hl_by_name("Normal", true) returns the group's colors.
Actual behavior
It only does so when the highlights are set the vimscript way.
akinsho, rcarriga, tiagovla, tamton-aquib, drewma2k and 6 morerktjmp and wuelnerdotexe
Metadata
Metadata
Assignees
Labels
apilibnvim, Nvim RPC APIlibnvim, Nvim RPC APIhas:reproissue contains minimal reproducing stepsissue contains minimal reproducing steps