summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/cfg/colorizer
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/cfg/colorizer')
-rw-r--r--.config/nvim/lua/cfg/colorizer/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/nvim/lua/cfg/colorizer/init.lua b/.config/nvim/lua/cfg/colorizer/init.lua
index ac5f135..abe2f72 100644
--- a/.config/nvim/lua/cfg/colorizer/init.lua
+++ b/.config/nvim/lua/cfg/colorizer/init.lua
@@ -1,4 +1,8 @@
-require("colorizer").setup({ "*" }, {
+local status_ok, colorizer = pcall(require, "colorizer")
+if not status_ok then
+ return
+end
+colorizer.setup({ "*" }, {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
RRGGBBAA = true, -- #RRGGBBAA hex codes