blob: 82565b898397c34efffb8d7de782fc8b2a9f6eed (
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
|
local fmt = string.format
local run = vim.api.nvim_command
-- Enable opt-in filetype.lua: https://github.com/neovim/neovim/pull/16600
vim.g.do_filetype_lua = 1
local ensure_paths = {}
local function ensure(user, repo)
local install_path = fmt("%s/lazy/%s", vim.fn.stdpath("data"), repo)
table.insert(ensure_paths, install_path)
if vim.fn.empty(vim.fn.glob(install_path)) ~= 0 then
print(fmt("Pack '%s' not found, cloning to %s", repo, install_path))
run(fmt("!git clone https://github.com/%s/%s %s", user, repo, install_path))
end
end
ensure("folke", "lazy.nvim")
ensure("rktjmp", "hotpot.nvim")
vim.opt.rtp:prepend(ensure_paths)
require("hotpot").setup { provide_require_fennel = true }
require("nvrc.ignite")
|