aboutsummaryrefslogtreecommitdiff
path: root/doc/colorizer.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/colorizer.txt')
-rw-r--r--doc/colorizer.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/colorizer.txt b/doc/colorizer.txt
index 1727fc4..0dfbf63 100644
--- a/doc/colorizer.txt
+++ b/doc/colorizer.txt
@@ -192,6 +192,39 @@ clear_highlight_cache() *colorizer.clear_highlight_cache*
user_default_options *colorizer.user_default_options*
defaults options.
+ In `user_default_options`, there are 2 types of options
+
+ 1. Individual options - `names`, `RGB`, `RRGGBB`, `RRGGBBAA`, `hsl_fn`,
+ `rgb_fn` , `RRGGBBAA`, `AARRGGBB`, `tailwind`, `sass`
+
+ 1. Alias options - `css`, `css_fn`
+
+ If `css_fn` is true, then `hsl_fn`, `rgb_fn` becomes `true`
+
+ If `css` is true, then `names`, `RGB`, `RRGGBB`, `RRGGBBAA`, `hsl_fn`,
+ `rgb_fn` becomes `true`
+
+ These options have a priority, Individual options have the highest priority,
+ then alias options
+
+ For alias, `css_fn` has more priority over `css`
+
+ e.g: Here `RGB`, `RRGGBB`, `RRGGBBAA`, `hsl_fn`, `rgb_fn` is enabled but not
+ `names`
+
+>
+ require 'colorizer'.setup { user_default_options = { names = false, css =
+ true } }
+<
+
+ e.g: Here `names`, `RGB`, `RRGGBB`, `RRGGBBAA` is enabled but not `rgb_fn`
+ and `hsl_fn`
+
+>
+ require 'colorizer'.setup { user_default_options = { css_fn = false, css =
+ true } }
+<
+
>
user_default_options = {
RGB = true, -- #RGB hex codes