From d258f14376303250810eb5f0be92c3d954a50112 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Wed, 20 Mar 2024 16:15:33 -0400 Subject: [PATCH] adds: bootstrap for lazy --- nvim/m-housh/init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nvim/m-housh/init.lua b/nvim/m-housh/init.lua index 8f93a42..75306f4 100755 --- a/nvim/m-housh/init.lua +++ b/nvim/m-housh/init.lua @@ -1,6 +1,20 @@ -- Leader needs to be set before loading plugins vim.g.mapleader = " " vim.g.maplocalleader = " " + +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not vim.loop.fs_stat(lazypath) then + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/folke/lazy.nvim.git", + "--branch=stable", -- latest stable release + lazypath, + }) +end +vim.opt.rtp:prepend(lazypath) + -- Auto commands require('user.autocmd')