aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 3e8e14b..82565b8 100644
--- a/init.lua
+++ b/init.lua
@@ -4,18 +4,22 @@ 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/site/pack/packer/start/%s", vim.fn.stdpath("data"), 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))
- run(fmt("packadd %s", repo))
end
end
-ensure("wbthomason", "packer.nvim")
+ensure("folke", "lazy.nvim")
ensure("rktjmp", "hotpot.nvim")
+vim.opt.rtp:prepend(ensure_paths)
+
require("hotpot").setup { provide_require_fennel = true }
require("nvrc.ignite")