adding more on readme

This commit is contained in:
Dingcheng Yue 2021-04-26 17:51:07 +01:00
parent 63f8a01290
commit 5604408234
2 changed files with 3 additions and 1 deletions

View file

@ -58,7 +58,7 @@ library to do custom highlighting themselves.
hsl_fn = false; -- CSS hsl() and hsla() functions
css = false; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background
-- Available modes: foreground, background, virtualtext
mode = 'background'; -- Set the display mode.
}
```

View file

@ -64,12 +64,14 @@ Assumes the module is imported as `colorizer`
css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background
mode = 'background'; -- Set the display mode.
virtualtext = '■'; -- the virtual text block
}
<
MODES:
- 'foreground': sets the foreground text color.
- 'background': sets the background text color.
- 'virtualtext': indicate the color behind the virtualtext
|colorizer.setup| *colorizer.setup*