-
-
Notifications
You must be signed in to change notification settings - Fork 117
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 Report] ColorizerToggle doesn't work after switching colorscheme #61
Comments
I got the same problem. Is anybody here? |
See also #91. This repo seems no longer maintained; use this fork instead: https://github.com/NvChad/nvim-colorizer.lua |
NvChad's one seems much better and well supported (and more community users). I quickly tried the one you pointed (nvim-highlight-colors) but I find that quite buggy, and I think nvim-colorizer.lua is a superset in terms of features and functionalities. |
@wookayin But I just tried the one maintained by NvChad, which unfortunately seems buggy regarding the toggle This is the code I'm using for your reference: -- use {
-- 'NvChad/nvim-colorizer.lua',
-- config = function ()
-- require('colorizer').setup {
-- user_default_options = {
-- names = false,
-- css_fn = true, -- Enable all CSS functions: rgb_fn, hsl_fn
-- }
-- }
-- vim.keymap.set('n', '<Leader>ah', function () vim.cmd('ColorizerToggle') end)
-- -- vim.api.nvim_create_autocmd({ 'ColorScheme' }, {
-- -- pattern = '*',
-- -- callback = function () vim.cmd('HighlightColorsOn') end
-- -- })
-- end
-- }
use {
'brenoprata10/nvim-highlight-colors',
config = function ()
require('nvim-highlight-colors').setup {
render = 'background',
enable_named_colors = true,
enable_tailwind = false
}
vim.keymap.set('n', '<Leader>ah', function () vim.cmd('HighlightColorsToggle') end)
vim.api.nvim_create_autocmd({ 'ColorScheme' }, {
pattern = '*',
callback = function () vim.cmd('HighlightColorsOn') end
})
end
} |
Just to clarify, my plugin (nvim-highlight-colors) is not a fork, I built it from scratch 😄 |
@brenoprata10 No worries, I meant NvChad one when I wrote "that maintained fork". |
Experiencing same issue. But I see recent (2 m.o.) activity in this repo, is it really unmaintained? |
Sorry just woke up from a metaphorical coma. I'll take a peek at reproducing this. Hopefully it's an easy fix. |
Describe the bug
I'm using the vim-one colorscheme. Just found after switching
background
from light to dark, the color highlight is lost.Command
ColorizerToggle
works well before changing thebackground
value, but not after that.Environments
The text was updated successfully, but these errors were encountered: