refactor(utils): use vim.uv

This commit is contained in:
Smirnov Oleksandr 2024-07-23 00:27:40 +03:00
parent 07a4a710f4
commit 6769cafc55

View file

@ -6,7 +6,7 @@ end
local function install_plug(plugin)
local name = plugin:match ".*/(.*)"
local package_root = root ".tests/site/pack/deps/start/"
if not vim.loop.fs_stat(package_root .. name) then
if not (vim.uv or vim.loop).fs_stat(package_root .. name) then
print("Installing " .. plugin)
vim.fn.mkdir(package_root, "p")
vim.fn.system {