summaryrefslogtreecommitdiff
path: root/neovim/init.lua
blob: 36ad3984d793a65620f145d675f98d8cb1cc7f9b (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
29
30
31
32
33
34
35
36
37
38
39
40
41
local function build_init()
  local _let_1_ = require("hotpot.api.make")
  local build = _let_1_["build"]
  local allowed_globals
  do
    local tbl_17_auto = {}
    local i_18_auto = #tbl_17_auto
    for n, _ in pairs(_G) do
      local val_19_auto = n
      if (nil ~= val_19_auto) then
        i_18_auto = (i_18_auto + 1)
        do end (tbl_17_auto)[i_18_auto] = val_19_auto
      else
      end
    end
    allowed_globals = tbl_17_auto
  end
  local opts = {verbosity = 0, compiler = {modules = {allowedGlobals = allowed_globals}}}
  local function _3_(_241)
    return _241
  end
  return build("/home/mike/dotnix/neovim/init.fnl", opts, ".+", _3_)
end
do
  local hotpot = require("hotpot")
  local setup = hotpot.setup
  local build = hotpot.api.make.build
  local uv = vim.loop
  setup({provide_require_fennel = true, compiler = {modules = {correlate = true}, macros = {env = "_COMPILER", compilerEnv = _G, allowedGlobals = false}}})
  local handle = uv.new_fs_event()
  local path = vim.fn.expand("/home/mike/dotnix/neovim/init.fnl")
  local function _4_()
    return vim.schedule(build_init)
  end
  uv.fs_event_start(handle, path, {}, _4_)
  local function _5_()
    return uv.close(handle)
  end
  vim.api.nvim_create_autocmd("VimLeavePre", {callback = _5_})
end
return require("conf")