mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-10-31 06:21:14 +00:00 
			
		
		
		
	fix(handler): properly show errors generated by setting up handlers
This commit is contained in:
		
					parent
					
						
							
								6ff480bdee
							
						
					
				
			
			
				commit
				
					
						4d77cf2efe
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1,3 +1,4 @@ | |||
| local Util = require("lazy.core.util") | ||||
| local Config = require("lazy.core.config") | ||||
| 
 | ||||
| ---@class LazyHandler | ||||
|  | @ -23,7 +24,9 @@ function M.setup() | |||
|     M.handlers[type] = M.new(type) | ||||
|   end | ||||
|   for _, plugin in pairs(Config.plugins) do | ||||
|     M.enable(plugin) | ||||
|     Util.try(function() | ||||
|       M.enable(plugin) | ||||
|     end, "Failed to setup handlers for " .. plugin.name) | ||||
|   end | ||||
| end | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue