rm un-needed nvim-colorizer lazyloading function
This commit is contained in:
parent
6a789fa37d
commit
2b55f9bb78
2 changed files with 1 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue