folke / tokyonight.nvim

🏙 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins. Includes additional themes for Kitty, Alacritty, iTerm and Fish.
Apache License 2.0
6.26k stars 414 forks source link

bug: after rewrite v4 change background dark <-> light broken #554

Closed lenow55 closed 3 months ago

lenow55 commented 3 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.10.0

Operating system/version

Linux ArchGame 6.9.7-arch1-1

Describe the bug

After update tokyonight by lazynvim to v4.1.0 i can't change background dark to background light by ub. Here i'm trying to change background to light (only notification present): Снимок экрана_20240702_184250|600 Same with change background to dark: Снимок экрана_20240702_184250|600

At 875d145f81cfc7f73f2867d2a7f0d3548baf8642 commit color cange only for status bar: Снимок экрана_20240702_184250

Steps To Reproduce

  1. Install lazyvim in default installation
  2. Add tokyonitht plugin
  3. Try ub keymap to change background color

Expected Behavior

Changing background color should work correctly.

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",
  "folke/tokyonight.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

{
    "folke/tokyonight.nvim",
    lazy = true,
    opts = { style = "moon" },
    commit = "875d145f81cfc7f73f2867d2a7f0d3548baf8642",
}
kassio commented 3 months ago

Having the same problem.

lenow55 commented 3 months ago

Thank you so much!