nvim-colorizer.lua icon indicating copy to clipboard operation
nvim-colorizer.lua copied to clipboard

added support for parsing hsl functions without percentage signs.

Open DesertCarMechanic opened this issue 2 years ago • 1 comments

For example: "hsl(20, 80, 40)". Useful in regular programming languages, instead of only in css. This fixes #34

DesertCarMechanic avatar Nov 02 '22 06:11 DesertCarMechanic

What does hsl(20, 80, 40) denote ? 80 and 40 treated as percentage ?

Also, no need to create a new parser, can just modify the existing function. Also have to introduce a new option for this behaviour as hsl(20, 80, 40) is not a valid color normally.

Akianonymus avatar Feb 25 '23 08:02 Akianonymus