From 7261a792a9d0381891938fa869b6a6b27c2e8f58 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 30 Dec 2022 18:56:48 +0100 Subject: [PATCH] fix: lazxy bootstrap code checked lazypath twice --- lua/user/lazy.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/user/lazy.lua b/lua/user/lazy.lua index 013d699b..5c7d5ed8 100644 --- a/lua/user/lazy.lua +++ b/lua/user/lazy.lua @@ -1,9 +1,7 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then - if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath }) - vim.fn.system({ "git", "-C", lazypath, "checkout", "tags/stable" }) -- last stable release - end + vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath }) + vim.fn.system({ "git", "-C", lazypath, "checkout", "tags/stable" }) -- last stable release end vim.opt.rtp:prepend(lazypath)