Skip to content

Bug: duplicate virtual text with tailwind set to both #152

Open
@gwuen

Description

@gwuen

Describe the bug
When the tailwind option is set to both and virtualtext is enabled, it appears twice. The second virtual text only appears after the Tailwind Language Server is loaded and disappears when it is unloaded.

To Reproduce

  1. Install the Tailwind CSS Language Server
  2. Install and configure colorizer: user_default_options = { tailwind = "both", mode = "virtualtext" }
  3. Open an HTML file in a Tailwind project (e.g., bradtraversy/simple-tailwind-starter) and make sure the language server is loaded
  4. Use any tailwind color name and look for the virtual text appearing twice.

Expected behavior
The virtual text should only appear once.

Screenshots

Image

Operating System: Arch Linux (rolling)

Neovim Version: 0.11.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions