diff --git a/README.md b/README.md index 48f64ba..aeedef9 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ You can add the following Lua code to your `init.lua` to bootstrap **lazy.nvim** ```lua local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not vim.uv.fs_stat(lazypath) then +if not (vim.uv or vim.loop).fs_stat(lazypath) then vim.fn.system({ "git", "clone", diff --git a/lua/lazy/init.lua b/lua/lazy/init.lua index 91acd37..4336da1 100644 --- a/lua/lazy/init.lua +++ b/lua/lazy/init.lua @@ -122,7 +122,7 @@ end function M.bootstrap() local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" - if not vim.uv.fs_stat(lazypath) then + if not (vim.uv or vim.loop).fs_stat(lazypath) then vim.fn.system({ "git", "clone",