From 1a2e6ebc59821fc10a02dae87e3524dbf32b7b33 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 24 May 2024 15:51:18 +0200 Subject: refactor: replace deprecated vim.loop with vim.uv --- runtime/lua/vim/health.lua | 4 ++-- runtime/lua/vim/provider/health.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/health.lua b/runtime/lua/vim/health.lua index 2417709ea2..f40f04a064 100644 --- a/runtime/lua/vim/health.lua +++ b/runtime/lua/vim/health.lua @@ -349,7 +349,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 @@ -368,7 +368,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) diff --git a/runtime/lua/vim/provider/health.lua b/runtime/lua/vim/provider/health.lua index edf813e96f..63e0da448a 100644 --- a/runtime/lua/vim/provider/health.lua +++ b/runtime/lua/vim/provider/health.lua @@ -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 = {} @@ -229,7 +229,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 -- cgit