From 9de0eedb3e19aa6c128a1c7f1bf07f41ce3b3729 Mon Sep 17 00:00:00 2001 From: AThePeanut4 <49614525+AThePeanut4@users.noreply.github.com> Date: Mon, 10 Jun 2024 03:02:07 +0200 Subject: [PATCH] fix: don't check updates for local plugins --- lua/lazy/manage/checker.lua | 2 +- lua/lazy/manage/task/git.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazy/manage/checker.lua b/lua/lazy/manage/checker.lua index 8e03d9eb..dc4d2b9e 100644 --- a/lua/lazy/manage/checker.lua +++ b/lua/lazy/manage/checker.lua @@ -35,7 +35,7 @@ end function M.fast_check(opts) opts = opts or {} for _, plugin in pairs(Config.plugins) do - if not plugin.pin and not plugin.dev and plugin._.installed then + if plugin._.installed and not (plugin.pin or plugin._.is_local) then plugin._.updates = nil local info = Git.info(plugin.dir) local ok, target = pcall(Git.get_target, plugin) diff --git a/lua/lazy/manage/task/git.lua b/lua/lazy/manage/task/git.lua index 8dd25369..c4aed4b8 100644 --- a/lua/lazy/manage/task/git.lua +++ b/lua/lazy/manage/task/git.lua @@ -9,7 +9,7 @@ local M = {} M.log = { ---@param opts {updated?:boolean, check?: boolean} skip = function(plugin, opts) - if opts.check and plugin.pin then + if opts.check and (plugin.pin or plugin._.is_local) then return true end if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then