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: HSL highlighting doesn't work if the numbers have any decimals in them #99

Open
gabrielmfern opened this issue Feb 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gabrielmfern
Copy link

Describe the bug

HSL highlighting does not work if you have any decimals inside of any of the parameters to the function,
so If you try something like hsl(216deg, 87.5%, 45%) with hsl_fn enabled it doesn't work
but if you do remove the .5 it does.

To Reproduce

My configuration looks like:

{
  filetypes = { "*" },
  user_default_options = {
    mode = "background",
    rgb_fn = true,
    hsl_fn = true,
    tailwind = true
  },
}

Just add both the hsl function calls I mentioned before and see that one gets highlighted and the other
doesn't.

Expected behavior

That any kind of colors passed onto the hsl function get highlighted.

Neovim Version:
v0.10.0-dev-2397+ga9f578b7a

Colorizer Version:
I tried running the command but wasn't able to so just the commit hash is 85855b3 of the version
I am using. I think this is the latest one.

@gabrielmfern gabrielmfern added the bug Something isn't working label Feb 24, 2024
Akianonymus pushed a commit to Akianonymus/nvim-colorizer.lua that referenced this issue Dec 22, 2024
* chore: adds scripts/start_minimal.sh script

* ref: updates luadoc to accept nil for setup opts

* doc: updates readme to add lazy.nvim setup example
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

2 participants