document-color.nvim
document-color.nvim copied to clipboard
Colors just flare up briefly and then disappear again
Title says it all.
Expected: Background of tailwind color classes stays colorized in the appropriate color.
Actual: Background returns to default background color after a couple ms.
that's very strange. do you have any other tailwind colorizer installed?
do they come back if you start editing the file
that's very strange. do you have any other tailwind colorizer installed?
I don't use multiple in parallel if that's what you mean. I have tried others, tho. With the same result.
do they come back if you start editing the file
Yes, but only if I edit the text of the color class. Not if I just edit anything.
I can't reproduce this.. some kind of screen recording or something would help. its probably conflicting with something
https://gfycat.com/simpleadmiredbellsnake
unfortunately you might just have to go and disable all other plugins until it works
Disabled everything except for keymaps and LSP stuff (which obviously I need for tailwind). Issue persists.
what version neovim are you using
0.7.2
try latest git because thats where I tested everything
It works fine for me on 0.7.2
I encountered something similar, the Tailwindcss LS worked fine, but in .css files with cssls, the colors would show when entering the buffer, but if i moved the cursor around they would disappear.
I found that disabling "xiyaowong/nvim-transparent" fixed the problem for me, i would guess it is something related to opacity or highlight groups
I don't use that plugin and I already disabled all plugins that aren't absolutely necessary.
Okay, i have been able to reproduce this issue. Are you passing
capabilities.textDocument.colorProvider = {
dynamicRegistration = true
}
to your lsp servers like the readme?
@mrshmllow yes, I set colorProvider.dynamicRegistration = true
and I
can reproduce this issue with tailwindcss
LSP, but I don't face this
issue when using themaxmarchuk/tailwindcss-colors.nvim