Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Special and Type are the same color #483

Open
3 tasks done
gi1242 opened this issue Jan 23, 2024 · 0 comments
Open
3 tasks done

bug: Special and Type are the same color #483

gi1242 opened this issue Jan 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gi1242
Copy link

gi1242 commented Jan 23, 2024

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)

NVIM v0.9.5

Operating system/version

Linux 6.6.13-1-lts

Describe the bug

In the dark theme, the Special and Type groups are both highlighted as blue1.

Not sure if this is by design, but I think many users find it useful to have special and type highlighted differently.

One choice would be to use

Special = {fg = util.blend( c.blue1, c.blue6, .75 )}

(Using blue6 made the contrast a bit too large...)

Of course, I can always set this in my on_highlights function (which I've done), so feel free to close this if the choice is by design. But in case you didn't realize they were highlighted identically, I thought I would point it out.

Steps To Reproduce

Use the color scheme in dark mode.

Expected Behavior

Special and Type are usually different on most color schemes. The are the same on this colorscheme.

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
@gi1242 gi1242 added the bug Something isn't working label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant