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",
|
||||
|
||||
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
|
||||
end,
|
||||
}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user