mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-10-31 14:31:04 +00:00 
			
		
		
		
	feat: refactor all vim.loop -> vim.uv and add a shim when needed
This commit is contained in:
		
					parent
					
						
							
								83493db50a
							
						
					
				
			
			
				commit
				
					
						9e157df077
					
				
			
		
					 19 changed files with 53 additions and 51 deletions
				
			
		|  | @ -26,7 +26,7 @@ function M.check() | |||
|   local existing = false | ||||
|   for _, site in pairs(sites) do | ||||
|     for _, packs in ipairs(vim.fn.expand(site .. "/pack/*", false, true)) do | ||||
|       if not packs:find("[/\\]dist$") and vim.loop.fs_stat(packs) then | ||||
|       if not packs:find("[/\\]dist$") and vim.uv.fs_stat(packs) then | ||||
|         existing = true | ||||
|         warn("found existing packages at `" .. packs .. "`") | ||||
|       end | ||||
|  | @ -46,7 +46,7 @@ function M.check() | |||
|   end | ||||
| 
 | ||||
|   local packer_compiled = vim.fn.stdpath("config") .. "/plugin/packer_compiled.lua" | ||||
|   if vim.loop.fs_stat(packer_compiled) then | ||||
|   if vim.uv.fs_stat(packer_compiled) then | ||||
|     error("please remove the file `" .. packer_compiled .. "`") | ||||
|   else | ||||
|     ok("packer_compiled.lua not found") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue