docs: added bootstrap code

This commit is contained in:
Folke Lemaitre 2022-12-14 21:41:19 +01:00
parent 1ee4e8b719
commit a27be6eb31
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 19 additions and 0 deletions

View File

@ -27,6 +27,25 @@ Modern plugin manager for Neovim
- Neovim >= **0.8.0** - 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 ## Profiler
The profiling view shows you why and how long it took to load your plugins. The profiling view shows you why and how long it took to load your plugins.