mirror of https://github.com/folke/lazy.nvim.git
docs: added bootstrap code
This commit is contained in:
parent
1ee4e8b719
commit
a27be6eb31
19
README.md
19
README.md
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue