Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Colors just flare up briefly and then disappear again #2

Open
stefanwatt opened this issue Aug 16, 2022 · 15 comments
Open

Colors just flare up briefly and then disappear again #2

stefanwatt opened this issue Aug 16, 2022 · 15 comments
Labels
bug Something isn't working question Further information is requested

Comments

@stefanwatt
Copy link

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.

@mrshmllow
Copy link
Owner

that's very strange. do you have any other tailwind colorizer installed?

@mrshmllow
Copy link
Owner

do they come back if you start editing the file

@stefanwatt
Copy link
Author

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.

@mrshmllow
Copy link
Owner

mrshmllow commented Aug 16, 2022

I can't reproduce this.. some kind of screen recording or something would help. its probably conflicting with something

@stefanwatt
Copy link
Author

@mrshmllow
Copy link
Owner

unfortunately you might just have to go and disable all other plugins until it works

@stefanwatt
Copy link
Author

Disabled everything except for keymaps and LSP stuff (which obviously I need for tailwind).
Issue persists.

@mrshmllow
Copy link
Owner

what version neovim are you using

@stefanwatt
Copy link
Author

0.7.2

@mrshmllow
Copy link
Owner

try latest git because thats where I tested everything

@mrshmllow
Copy link
Owner

It works fine for me on 0.7.2

@mrshmllow mrshmllow added bug Something isn't working question Further information is requested labels Aug 17, 2022
@celsobenedetti
Copy link

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

@stefanwatt
Copy link
Author

I don't use that plugin and I already disabled all plugins that aren't absolutely necessary.

@mrshmllow
Copy link
Owner

mrshmllow commented Aug 19, 2022

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 mrshmllow pinned this issue Aug 19, 2022
@fitrh
Copy link

fitrh commented Nov 16, 2022

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants