File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
local Config = require (" lazy.core.config" )
2
+ local uv = vim .uv or vim .loop
2
3
3
4
local M = {}
4
5
@@ -26,7 +27,7 @@ function M.check()
26
27
local existing = false
27
28
for _ , site in pairs (sites ) do
28
29
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
30
31
existing = true
31
32
warn (" found existing packages at `" .. packs .. " `" )
32
33
end
@@ -46,7 +47,7 @@ function M.check()
46
47
end
47
48
48
49
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
50
51
error (" please remove the file `" .. packer_compiled .. " `" )
51
52
else
52
53
ok (" packer_compiled.lua not found" )
You can’t perform that action at this time.
0 commit comments