From a27be6eb31a01a04abc17b01cbf2bad5d53a386c Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 14 Dec 2022 21:41:19 +0100 Subject: [PATCH] docs: added bootstrap code --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 308ea55..322a57a 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,25 @@ Modern plugin manager for Neovim - Neovim >= **0.8.0** +## 📦 Installation + +You can use the following Lua code to bootstrap **lazy.nvim** + +```lua + 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", + "--single-branch", + "https://github.com/folke/lazy.nvim.git", + lazypath, + }) + vim.opt.runtimepath:prepend(lazypath) + end +``` + ## Profiler The profiling view shows you why and how long it took to load your plugins.