mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-10-31 14:31:04 +00:00 
			
		
		
		
	fix(luarocks): add plugin to lua path if it was already loaded before we know its a luarock
This commit is contained in:
		
					parent
					
						
							
								6c3bda4aca
							
						
					
				
			
			
				commit
				
					
						147f5a3f55
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -63,6 +63,9 @@ function M.update() | |||
|             pkg.spec = { _raw = spec.code } | ||||
|           end | ||||
|           table.insert(ret.pkgs, pkg) | ||||
|           if not plugin._.pkg and plugin._.loaded and pkg.source == "rockspec" then | ||||
|             require("lazy.core.loader").add_to_luapath(plugin) | ||||
|           end | ||||
|           break | ||||
|         end | ||||
|       end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue