feat: refactor all vim.loop -> vim.uv and add a shim when needed

This commit is contained in:
Folke Lemaitre 2024-03-22 08:58:36 +01:00
parent 83493db50a
commit 9e157df077
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
19 changed files with 53 additions and 51 deletions

View file

@ -2,7 +2,7 @@
local M = setmetatable({}, { __index = require("lazy.core.util") })
function M.file_exists(file)
return vim.loop.fs_stat(file) ~= nil
return vim.uv.fs_stat(file) ~= nil
end
---@param opts? LazyFloatOptions
@ -71,7 +71,7 @@ end
---@param fn F
---@return F
function M.throttle(ms, fn)
local timer = vim.loop.new_timer()
local timer = vim.uv.new_timer()
local running = false
local first = true