From d8a92c75b1b8801ba3d3d589c7dcf45af19ae532 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Fri, 15 Jul 2022 13:08:42 +0530 Subject: [PATCH] Fix colorizer lazy load messing up cursor position when file is opened --- lua/core/lazy_load.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lua/core/lazy_load.lua b/lua/core/lazy_load.lua index 37f1c22..63da723 100644 --- a/lua/core/lazy_load.lua +++ b/lua/core/lazy_load.lua @@ -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