From 804cae0a65ade8b1638eb1ccb537c2ff793459ce Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 26 Jun 2024 19:38:45 +0200 Subject: [PATCH] refactor: hererocks check --- lua/lazy/core/plugin.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua index a3cb497..84660e6 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -264,10 +264,8 @@ function M.update_rocks_state() end) for _, plugin in pairs(Config.plugins) do - if plugin.build == "rockspec" then + if plugin.build == "rockspec" or plugin.name == "hererocks" then plugin._.build = not installed[plugin.name] - elseif plugin.name == "hererocks" then - plugin._.build = not vim.uv.fs_stat(Config.options.rocks.root .. "/hererocks") end end end