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.42k stars 433 forks source link

bug: Invalid colors #602

Closed gi4c0 closed 4 months ago

gi4c0 commented 4 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.10.0

Operating system/version

MacOS 14.5

Describe the bug

The colors are invalid and seems to be displayed as if termguicolors was disabled. They are too bright and constrast:

Screenshot 2024-07-14 at 22 16 06

I'm sure the termguicolors is set to true and before theme setup. The terminal app is Kitty. I saw this issue but it looks the same with or without tmux

Steps To Reproduce

  1. Simply load theme without configuration

Expected Behavior

The colors match those on screenshots from readme

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
      {
          "folke/tokyonight.nvim",
          lazy = false,
          priority = 1000,
          opts = {
          },

          config = function()
              require("tokyonight").setup({
                  transparent = false,
                  style = "storm",
              })

              vim.cmd[[colorscheme tokyonight]]
          end
      }
  },
})
folke commented 4 months ago

Those colors look correct