aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/pluginsconfig/colorizer.lua
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2023-08-22 19:43:07 +0100
committerJustine Smithies <justine@smithies.me.uk>2023-08-22 19:43:07 +0100
commit86c0c3694c93025dfec23f27266905c12f446a4e (patch)
tree32ee6e5cc84b6e2962a998d788554cb984fb7a8e /.config/nvim/lua/pluginsconfig/colorizer.lua
parent3058d6df77817de298a207d36b8b0871893c417a (diff)
Initial commit
Diffstat (limited to '.config/nvim/lua/pluginsconfig/colorizer.lua')
-rw-r--r--.config/nvim/lua/pluginsconfig/colorizer.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/nvim/lua/pluginsconfig/colorizer.lua b/.config/nvim/lua/pluginsconfig/colorizer.lua
new file mode 100644
index 0000000..2ad4f6e
--- /dev/null
+++ b/.config/nvim/lua/pluginsconfig/colorizer.lua
@@ -0,0 +1,12 @@
+ require('colorizer').setup({ '*' }, {
+ RGB = true, -- #RGB hex codes
+ RRGGBB = true, -- #RRGGBB hex codes
+ names = true, -- "Name" codes like Blue
+ RRGGBBAA = true, -- #RRGGBBAA hex codes
+ rgb_fn = true, -- CSS rgb() and rgba() functions
+ hsl_fn = true, -- CSS hsl() and hsla() functions
+ css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
+ css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
+ mode = 'background', -- Set the display mode. background / foreground
+ })
+