aboutsummaryrefslogtreecommitdiff
path: root/lua/pacman.lua
blob: cdc09474eca20713fcf47d07cf762a125cd02740 (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)