Fix colorizer lazy load messing up cursor position when file is opened

This commit is contained in:
Akianonymus 2022-07-15 13:08:42 +05:30 committed by Sidhanth Rathod
parent e94a8c1e25
commit d8a92c75b1

View File

@ -32,13 +32,7 @@ M.colorizer = function()
plugins = "nvim-colorizer.lua", plugins = "nvim-colorizer.lua",
condition = function() condition = function()
local items = { "#", "rgb", "hsl", "rgba", "hsla" }
for _, val in ipairs(items) do
if vim.fn.search(val) ~= 0 then
return true return true
end
end
end, end,
} }
end end