-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
27 lines (22 loc) · 786 Bytes
/
init.lua
File metadata and controls
27 lines (22 loc) · 786 Bytes
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 cmd = vim.api.nvim_command
local fn = vim.fn
local pack_path = fn.stdpath("data") .. "/site/pack"
local fmt = string.format
function ensure(user, repo)
local install_path = fmt("%s/packer/start/%s", pack_path, repo)
if fn.empty(fn.glob(install_path)) > 0 then
cmd(fmt("!git clone https://github.com/%s/%s %s", user, repo, install_path))
cmd(fmt("packadd %s", repo))
end
end
-- Bootstrap essential plugins necessary to load everything else
ensure("wbthomason", "packer.nvim")
ensure("Olical", "aniseed")
ensure("lewis6991", "impatient.nvim")
-- Impatient pre-compiles and caches Lua modules
require("impatient")
-- Enable Aniseed's automatic compilation and loading of Fennel code
vim.g["aniseed#env"] = {
module = "config.init",
compile = true
}