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
1 changed files with 1 additions and 7 deletions

View File

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