mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
fix: don't check updates for local plugins
This commit is contained in:
parent
eb4957442e
commit
9de0eedb3e
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ end
|
||||||
function M.fast_check(opts)
|
function M.fast_check(opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
for _, plugin in pairs(Config.plugins) do
|
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
|
plugin._.updates = nil
|
||||||
local info = Git.info(plugin.dir)
|
local info = Git.info(plugin.dir)
|
||||||
local ok, target = pcall(Git.get_target, plugin)
|
local ok, target = pcall(Git.get_target, plugin)
|
||||||
|
|
|
@ -9,7 +9,7 @@ local M = {}
|
||||||
M.log = {
|
M.log = {
|
||||||
---@param opts {updated?:boolean, check?: boolean}
|
---@param opts {updated?:boolean, check?: boolean}
|
||||||
skip = function(plugin, opts)
|
skip = function(plugin, opts)
|
||||||
if opts.check and plugin.pin then
|
if opts.check and (plugin.pin or plugin._.is_local) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then
|
if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue