1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
local lazy_path = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
local aniseed_path = vim.fn.stdpath "data" .. "/lazy/aniseed"
local function ensure(user, plugin, path)
if not vim.loop.fs_stat(path) then
vim.fn.system {
"git",
"clone",
"--filter=blob:none",
"--single-branch",
string.format("https://github.com/%s/%s.git", user, plugin),
path,
}
end
end
ensure("folke", "lazy.nvim", lazy_path)
ensure("Olical", "aniseed", aniseed_path)
vim.opt.runtimepath:prepend(lazy_path)
vim.opt.runtimepath:prepend(aniseed_path)
vim.g["aniseed#env"] = {
module = "init",
compile = true,
}
|