refactor: replace deprecated vim.loop with vim.uv

(cherry picked from commit 1a2e6ebc59)
This commit is contained in:
dundargoc
2024-05-24 15:51:18 +02:00
committed by github-actions[bot]
parent ab2d243fd0
commit c35e040b7e
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
local health = vim.health
local iswin = vim.loop.os_uname().sysname == 'Windows_NT'
local iswin = vim.uv.os_uname().sysname == 'Windows_NT'
local M = {}
@ -7,7 +7,7 @@ local function is(path, ty)
if not path then
return false
end
local stat = vim.loop.fs_stat(path)
local stat = vim.uv.fs_stat(path)
if not stat then
return false
end

View File

@ -306,7 +306,7 @@ function M.system(cmd, args)
if jobid < 1 then
local message =
string.format('Command error (job=%d): %s (in %s)', jobid, shellify(cmd), vim.loop.cwd())
string.format('Command error (job=%d): %s (in %s)', jobid, shellify(cmd), vim.uv.cwd())
error(message)
return opts.output, 1
end
@ -325,7 +325,7 @@ function M.system(cmd, args)
jobid,
shell_error_code,
shellify(cmd),
vim.loop.cwd()
vim.uv.cwd()
)
if opts.output:find('%S') then
emsg = string.format('%s\noutput: %s', emsg, opts.output)