From b34328fb41be11f0ea56a1751e84020ef99ee608 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Sat, 3 Sep 2022 19:38:35 +0530 Subject: [PATCH] plugins: Colorizer: Changes for new config style --- lua/plugins/configs/others.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index 544f2f0..9d0fef3 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -88,9 +88,9 @@ M.colorizer = function() } options = load_override(options, "NvChad/nvim-colorizer.lua") - colorizer.setup(options["filetypes"], options["user_default_options"]) - - vim.cmd "ColorizerAttachToBuffer" + colorizer.setup(options) + -- execute colorizer as soon as possible + return vim.tbl_isempty(options.filetypes or {}) or vim.cmd [[do FileType]] end M.comment = function()