blob: ec4b7f021767a67bf4f0b9b618b7f2dda92d264d (
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_dl = 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_dl()
end
vim.opt.rtp:prepend(path)
|