Skip to content

bug: Setting LineNr highlight has no visual effectΒ #589

@pezcore

Description

@pezcore

Did you check docs and existing issues?

  • I have read all the tokyonight.nvim docs
  • I have searched the existing issues of tokyonight.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.10.0

Operating system/version

Void Linux x86_64

Describe the bug

Setting the LineNr guifg highlight has no visual effect. When starting neovim, both the visual appearance of the line number and the value of LineNr guifg is #3b4261:

2024-07-08T18:27:33,413838395-04:00

But after changing the LineNr highlight value the visual appearance of the line numbers remains unchanged:
2024-07-08T18:28:51,157070450-04:00

Steps To Reproduce

  1. Open any file with nvim path/to/file
  2. Issue the following command :hi LineNr guifg=white

Expected Behavior

Expected the foreground color of the line numbers in the gutter to change to white.

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
--
vim.o.nu = true
vim.o.rnu = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions