summaryrefslogtreecommitdiff
path: root/init.lua
blob: 5d36ba8126a1222c297ab12faf724f58f36018e0 (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
28
local function ensure(user, plugin)
  local path = vim.fn.stdpath "data" .. "/lazy/" .. plugin
  if not vim.uv.fs_stat(path) then
    vim.notify("Downloading " .. plugin .. "...", vim.log.levels.INFO)
    vim.fn.system {
      "git",
      "clone",
      "--filter=blob:none",
      "--single-branch",
      string.format("https://github.com/%s/%s.git", user, plugin),
      path,
    }
  end
  vim.opt.runtimepath:prepend(path)
end

ensure("folke", "lazy.nvim")
ensure("rktjmp", "hotpot.nvim")

require("hotpot").setup {
  provide_require_fennel = true,
  compiler = {
    modules = {
      correlate = true,
    },
  },
}
require "aktersnurra"