summaryrefslogtreecommitdiff
path: root/init.lua
blob: 53884611c13f498bb7f6a45e22d41df4f27d8902 (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
local aniseed_path = vim.fn.stdpath "data" .. "/aniseed/aniseed.nvim"
local lazy_path = vim.fn.stdpath "data" .. "/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,
}