mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-10-31 14:31:04 +00:00 
			
		
		
		
	fix(loader): lua modules can be links instead of files. Fixes #66
This commit is contained in:
		
					parent
					
						
							
								7a57ea28d3
							
						
					
				
			
			
				commit
				
					
						b7c489b08f
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -173,7 +173,7 @@ function M.lsmod(modname, root, fn) | |||
|     fn(modname, root .. ".lua") | ||||
|   end | ||||
|   M.ls(root, function(path, name, type) | ||||
|     if type == "file" and name:sub(-4) == ".lua" then | ||||
|     if (type == "file" or type == "link") and name:sub(-4) == ".lua" then | ||||
|       if name == "init.lua" then | ||||
|         fn(modname, path) | ||||
|       else | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue