Skip to content

Commit 481aed7

Browse files
committed
fix(heath): vim.uv. Fixes #1412
1 parent 31ddbea commit 481aed7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lua/lazy/health.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
local Config = require("lazy.core.config")
2+
local uv = vim.uv or vim.loop
23

34
local M = {}
45

@@ -26,7 +27,7 @@ function M.check()
2627
local existing = false
2728
for _, site in pairs(sites) do
2829
for _, packs in ipairs(vim.fn.expand(site .. "/pack/*", false, true)) do
29-
if not packs:find("[/\\]dist$") and vim.uv.fs_stat(packs) then
30+
if not packs:find("[/\\]dist$") and uv.fs_stat(packs) then
3031
existing = true
3132
warn("found existing packages at `" .. packs .. "`")
3233
end
@@ -46,7 +47,7 @@ function M.check()
4647
end
4748

4849
local packer_compiled = vim.fn.stdpath("config") .. "/plugin/packer_compiled.lua"
49-
if vim.uv.fs_stat(packer_compiled) then
50+
if uv.fs_stat(packer_compiled) then
5051
error("please remove the file `" .. packer_compiled .. "`")
5152
else
5253
ok("packer_compiled.lua not found")

0 commit comments

Comments
 (0)