rm un-needed nvim-colorizer lazyloading function

This commit is contained in:
siduck 2022-07-24 10:17:46 +00:00
parent 6a789fa37d
commit 2b55f9bb78
2 changed files with 1 additions and 13 deletions

View File

@ -25,18 +25,6 @@ M.lazy_load = function(tb)
})
end
M.colorizer = function()
M.lazy_load {
events = { "BufRead", "BufNewFile" },
augroup_name = "ColorizerLazy",
plugins = "nvim-colorizer.lua",
condition = function()
return true
end,
}
end
-- load certain plugins only when there's a file opened in the buffer
-- if "nvim filename" is executed -> load the plugin after nvim gui loads
-- This gives an instant preview of nvim with the file opened

View File

@ -50,7 +50,7 @@ local plugins = {
["NvChad/nvim-colorizer.lua"] = {
opt = true,
setup = function()
require("core.lazy_load").colorizer()
require("core.lazy_load").on_file_open "nvim-colorizer.lua"
end,
config = function()
require("plugins.configs.others").colorizer()