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: The text completely blends with the background color of nvim and becomes unreadable. Happens in 'foreground' mode. #101

Open
decipher-cs opened this issue May 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@decipher-cs
Copy link

Describe the bug
I'm using the tokyonight-night theme and any hex color with dark value just blends with the background when I set mode = foreground

To Reproduce
Use this config and open any file with a hex color whose value is close to your theme's background color. The text will blend.
I'm using the lazy plugin for setup and installation.

{
  "norcalli/nvim-colorizer.lua",
  config = function()
      require("colorizer").setup({}, { mode = "foreground" })
  end
},

Expected behavior
I expected it to use some type of contrast detection algorithm and automatically switch the blending text to background mode.

Screenshots
Screenshot_20240518_115735

Neovim Version:
0.9.5

Colorizer Version:
I'm on commit a065833

@decipher-cs decipher-cs added the bug Something isn't working label May 18, 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

2 participants