summaryrefslogtreecommitdiff
path: root/init.lua
blob: bc6151e91e2483884a85410a0aa31ffe3d550a5b (plain)
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
27
local data_path = vim.fn.stdpath "data"
local aniseed_path = data_path .. "/aniseed/aniseed.nvim"
local lazy_path = data_path .. "/lazy/lazy.nvim"

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,
}