rm un-needed nvim-colorizer lazyloading function
This commit is contained in:
parent
6a789fa37d
commit
2b55f9bb78
|
@ -25,18 +25,6 @@ M.lazy_load = function(tb)
|
||||||
})
|
})
|
||||||
end
|
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
|
-- 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
|
-- if "nvim filename" is executed -> load the plugin after nvim gui loads
|
||||||
-- This gives an instant preview of nvim with the file opened
|
-- This gives an instant preview of nvim with the file opened
|
||||||
|
|
|
@ -50,7 +50,7 @@ local plugins = {
|
||||||
["NvChad/nvim-colorizer.lua"] = {
|
["NvChad/nvim-colorizer.lua"] = {
|
||||||
opt = true,
|
opt = true,
|
||||||
setup = function()
|
setup = function()
|
||||||
require("core.lazy_load").colorizer()
|
require("core.lazy_load").on_file_open "nvim-colorizer.lua"
|
||||||
end,
|
end,
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.configs.others").colorizer()
|
require("plugins.configs.others").colorizer()
|
||||||
|
|
Loading…
Reference in New Issue