mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: refactor all vim.loop -> vim.uv and add a shim when needed
This commit is contained in:
parent
83493db50a
commit
9e157df077
19 changed files with 53 additions and 51 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue