mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-11-04 00:11:06 +00:00 
			
		
		
		
	fix(checker): dont report updates on install during startup
This commit is contained in:
		
					parent
					
						
							
								7b9b476a62
							
						
					
				
			
			
				commit
				
					
						8251c23c90
					
				
			
		
					 2 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -14,7 +14,9 @@ function M.start()
 | 
			
		|||
  M.check()
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function M.fast_check()
 | 
			
		||||
---@param opts? {report:boolean} report defaults to true
 | 
			
		||||
function M.fast_check(opts)
 | 
			
		||||
  opts = opts or {}
 | 
			
		||||
  for _, plugin in pairs(Config.plugins) do
 | 
			
		||||
    if not plugin.pin and plugin._.installed then
 | 
			
		||||
      plugin._.has_updates = nil
 | 
			
		||||
| 
						 | 
				
			
			@ -25,7 +27,9 @@ function M.fast_check()
 | 
			
		|||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
  M.report()
 | 
			
		||||
  if opts.report ~= false then
 | 
			
		||||
    M.report()
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function M.check()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue