From a836600573fbcf1879b850d40b8cdea59b33f8da Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 27 Mar 2024 09:23:15 +0100 Subject: [PATCH] docs: make bootstrap work on stable and nightly. Fixes #1391 --- README.md | 2 +- lua/lazy/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",