Skip to content

Commit 3a50b41

Browse files
authored
doc: wrap raw hex string in hsl call in CREATE.md
The string must be wrapped as we call `Normal.fg.darken` on it in the next line.
1 parent fb52ac2 commit 3a50b41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CREATE.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ return lush(function()
9898
return {
9999
-- Define Vim's Normal highlight group.
100100
-- You can provide values with hsl/hsluv or anything that responds to `tostring`
101-
Normal { bg = hsl(208, 90, 30), fg = "#A3CFF5" },
101+
-- but be aware if you don't "wrap" your color in a hsl/hsluv call you
102+
-- wont have chainable access to the color "operators" (darken, etc).
103+
Normal { bg = hsl(208, 90, 30), fg = hsl("#A3CFF5" ) },
102104
103105
-- Make whitespace slightly darker than normal.
104106
-- you must define Normal before deriving from it.

0 commit comments

Comments
 (0)