mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor: replace deprecated vim.loop with vim.uv
This commit is contained in:
parent
cf4723c09b
commit
1a2e6ebc59
@ -349,7 +349,7 @@ function M._system(cmd, args)
|
|||||||
|
|
||||||
if jobid < 1 then
|
if jobid < 1 then
|
||||||
local message =
|
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)
|
error(message)
|
||||||
return opts.output, 1
|
return opts.output, 1
|
||||||
end
|
end
|
||||||
@ -368,7 +368,7 @@ function M._system(cmd, args)
|
|||||||
jobid,
|
jobid,
|
||||||
shell_error_code,
|
shell_error_code,
|
||||||
shellify(cmd),
|
shellify(cmd),
|
||||||
vim.loop.cwd()
|
vim.uv.cwd()
|
||||||
)
|
)
|
||||||
if opts.output:find('%S') then
|
if opts.output:find('%S') then
|
||||||
emsg = string.format('%s\noutput: %s', emsg, opts.output)
|
emsg = string.format('%s\noutput: %s', emsg, opts.output)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
local health = vim.health
|
local health = vim.health
|
||||||
local iswin = vim.loop.os_uname().sysname == 'Windows_NT'
|
local iswin = vim.uv.os_uname().sysname == 'Windows_NT'
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
@ -229,7 +229,7 @@ local function is(path, ty)
|
|||||||
if not path then
|
if not path then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local stat = vim.loop.fs_stat(path)
|
local stat = vim.uv.fs_stat(path)
|
||||||
if not stat then
|
if not stat then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user