From 0c02f9c13097fe52b42d9b656190d8973c452df9 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Mon, 7 Feb 2022 22:54:20 +0530 Subject: Allow lower case color names --- README.md | 2 +- lua/colorizer.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a8e75ab..1ec45f5 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ library to do custom highlighting themselves. DEFAULT_OPTIONS = { RGB = true; -- #RGB hex codes RRGGBB = true; -- #RRGGBB hex codes - names = true; -- "Name" codes like Blue + names = true; -- "Name" codes like Blue oe blue RRGGBBAA = false; -- #RRGGBBAA hex codes rgb_fn = false; -- CSS rgb() and rgba() functions hsl_fn = false; -- CSS hsl() and hsla() functions diff --git a/lua/colorizer.lua b/lua/colorizer.lua index 6f3439f..e726c6c 100644 --- a/lua/colorizer.lua +++ b/lua/colorizer.lua @@ -18,7 +18,7 @@ local COLOR_MAP local COLOR_TRIE local COLOR_NAME_MINLEN, COLOR_NAME_MAXLEN local COLOR_NAME_SETTINGS = { - lowercase = false; + lowercase = true; strip_digits = false; } @@ -58,7 +58,7 @@ end local DEFAULT_OPTIONS = { RGB = true; -- #RGB hex codes RRGGBB = true; -- #RRGGBB hex codes - names = true; -- "Name" codes like Blue + names = true; -- "Name" codes like Blue or blue RRGGBBAA = false; -- #RRGGBBAA hex codes rgb_fn = false; -- CSS rgb() and rgba() functions hsl_fn = false; -- CSS hsl() and hsla() functions -- cgit v1.2.3-70-g09d2