We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Util.is_dark
0.10.1
Arch Linux
Util.is_dark is not resolving correctly in some edge cases it looks like which results in some colorschemes having unreadable todo notes.
#00B298 is an example of a color that results in true in is_dark and gets a light foreground which is unreadable
#00B298
true
DiagnosticHint
fg
NOTE
The text should get the dark foreground color which makes it readable
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/todo-comments.nvim", dependencies = { { "nvim-lua/plenary.nvim", lazy = true } }, opts = {}, }, { "folke/tokyonight.nvim", opts = { on_highlights = function(hl) hl.DiagnosticHint = { fg = "#00B298" } end, }, }, }, })
The text was updated successfully, but these errors were encountered:
76990a9
Successfully merging a pull request may close this issue.
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.1
Operating system/version
Arch Linux
Describe the bug
Util.is_dark
is not resolving correctly in some edge cases it looks like which results in some colorschemes having unreadable todo notes.#00B298
is an example of a color that results intrue
in is_dark and gets a light foreground which is unreadableSteps To Reproduce
DiagnosticHint
fg
to#00B298
NOTE
highlightExpected Behavior
The text should get the dark foreground color which makes it readable
Repro
The text was updated successfully, but these errors were encountered: