blob: b494ae54982cde62dff7610fd629ea691b1a2b54 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
local path = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
local repo = "https://github.com/folke/lazy.nvim.git"
local lazy_init = function()
vim.print " downloading lazy.nvim"
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
repo,
"--branch=stable",
path,
})
vim.print ""
vim.cmd "redraw"
end
if not vim.loop.fs_stat(path) then
lazy_init()
end
vim.opt.rtp:prepend(path)
|