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
|
@ -28,8 +28,8 @@ describe("lazy", function()
|
|||
"folke/paint.nvim",
|
||||
}, { install_missing = true, defaults = { lazy = true } })
|
||||
assert(3 == vim.tbl_count(Config.plugins))
|
||||
assert(vim.loop.fs_stat(root .. "/paint.nvim/README.md"))
|
||||
assert(vim.loop.fs_stat(root .. "/neodev.nvim/README.md"))
|
||||
assert(vim.uv.fs_stat(root .. "/paint.nvim/README.md"))
|
||||
assert(vim.uv.fs_stat(root .. "/neodev.nvim/README.md"))
|
||||
assert(not neodev)
|
||||
assert(Config.plugins["neodev.nvim"]._.installed)
|
||||
assert(not Config.plugins["neodev.nvim"]._.is_local)
|
||||
|
|
|
@ -12,7 +12,7 @@ describe("util", function()
|
|||
end
|
||||
end
|
||||
Helpers.fs_rm("")
|
||||
assert(not vim.loop.fs_stat(Helpers.path("")), "fs root should be deleted")
|
||||
assert(not vim.uv.fs_stat(Helpers.path("")), "fs root should be deleted")
|
||||
end)
|
||||
|
||||
it("lsmod lists all mods in dir", function()
|
||||
|
@ -85,7 +85,7 @@ describe("util", function()
|
|||
assert.same(Helpers.path("old/lua/foobar"), root)
|
||||
|
||||
Helpers.fs_rm("old")
|
||||
assert(not vim.loop.fs_stat(Helpers.path("old/lua/foobar")), "old/lua/foobar should not exist")
|
||||
assert(not vim.uv.fs_stat(Helpers.path("old/lua/foobar")), "old/lua/foobar should not exist")
|
||||
|
||||
-- vim.opt.rtp = rtp
|
||||
vim.opt.rtp:append(Helpers.path("new"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue