mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-24 09:49:07 +02: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
|
@ -472,7 +472,7 @@ function M.add_to_rtp(plugin)
|
|||
table.insert(rtp, idx_dir or (#rtp + 1), plugin.dir)
|
||||
|
||||
local after = plugin.dir .. "/after"
|
||||
if vim.loop.fs_stat(after) then
|
||||
if vim.uv.fs_stat(after) then
|
||||
table.insert(rtp, idx_after or (#rtp + 1), after)
|
||||
end
|
||||
|
||||
|
@ -495,7 +495,7 @@ function M.colorscheme(name)
|
|||
if not plugin._.loaded then
|
||||
for _, ext in ipairs({ "lua", "vim" }) do
|
||||
local path = plugin.dir .. "/colors/" .. name .. "." .. ext
|
||||
if vim.loop.fs_stat(path) then
|
||||
if vim.uv.fs_stat(path) then
|
||||
return M.load(plugin, { colorscheme = name })
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue