Skip to content
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: Tailwind does not work when names option is false #60

Open
MrRoiz opened this issue May 4, 2023 · 2 comments
Open

Bug: Tailwind does not work when names option is false #60

MrRoiz opened this issue May 4, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@MrRoiz
Copy link

MrRoiz commented May 4, 2023

Describe the bug
I wanted to set up this plugin to give colorizing support to tailwind classes but, I don't want to colorize every word matching with a color name, but tailwind option only seems to work when names option is true
image

To Reproduce
Set names option as false and then tailwind colorizing won't work anymore

Expected behavior
With names option set as false it should still work for tailwind classes

Screenshots

  • tailwind option set as true and names option to default
    image
  • tailwind option set as true and names options also set as true
    image

Operating System:
Ubuntu 22.10 x86_64

Neovim Version:
v0.9.0

Colorizer Version:
Command below does not print anything
find ~/.config/nvim/ -type d -name 'nvim-colorizer.lua' -exec git rev-parse HEAD \;
here's the installation data (from lazy)
image

Additional context
N/A

@MrRoiz MrRoiz added the bug Something isn't working label May 4, 2023
@9mm
Copy link

9mm commented Sep 14, 2023

Also have this issue, I'm glad i found this.. thanks

@litoj
Copy link

litoj commented Nov 20, 2023

Hi, I recently felt the urge to be able to highlight my own custom color names, so I did some work on the names parser also responsible for highlighting tailwind colors and I think it should easily fix your issue. In case you want to try my fork until it gets merged you'll have to put the tailwind config value into names, so it would be like: names='tailwind'|'tailwind_lsp'|'tailwind_both'

I hope it solves the issue for you without any side effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants