Fix colorizer lazy load messing up cursor position when file is opened
This commit is contained in:
parent
e94a8c1e25
commit
d8a92c75b1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue