mirror of https://github.com/folke/lazy.nvim.git
fix: only run updated checker for installed plugins. Fixes #16
This commit is contained in:
parent
7225b055f5
commit
ae644a604d
|
@ -16,11 +16,13 @@ end
|
||||||
|
|
||||||
function M.fast_check()
|
function M.fast_check()
|
||||||
for _, plugin in pairs(Config.plugins) do
|
for _, plugin in pairs(Config.plugins) do
|
||||||
plugin._.has_updates = nil
|
if plugin._.installed then
|
||||||
local info = Git.info(plugin.dir)
|
plugin._.has_updates = nil
|
||||||
local target = Git.get_target(plugin)
|
local info = Git.info(plugin.dir)
|
||||||
if info and target and info.commit ~= target.commit then
|
local target = Git.get_target(plugin)
|
||||||
plugin._.has_updates = true
|
if info and target and info.commit ~= target.commit then
|
||||||
|
plugin._.has_updates = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
M.report()
|
M.report()
|
||||||
|
|
Loading…
Reference in New Issue