plugins: Colorizer: Changes for new config style

This commit is contained in:
Akianonymus 2022-09-03 19:38:35 +05:30 committed by Aki
parent 7fe754342a
commit b34328fb41

View File

@ -88,9 +88,9 @@ M.colorizer = function()
} }
options = load_override(options, "NvChad/nvim-colorizer.lua") options = load_override(options, "NvChad/nvim-colorizer.lua")
colorizer.setup(options["filetypes"], options["user_default_options"]) colorizer.setup(options)
-- execute colorizer as soon as possible
vim.cmd "ColorizerAttachToBuffer" return vim.tbl_isempty(options.filetypes or {}) or vim.cmd [[do FileType]]
end end
M.comment = function() M.comment = function()