From ed888229826268ef0e51802e4e8f1f8c66b4e69d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 22 Jan 2023 17:39:08 +0100 Subject: Add bootstrap sh script --- init.lua | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index edc5f6f..8816adb 100644 --- a/init.lua +++ b/init.lua @@ -1,23 +1,13 @@ -local function ensure(user, plugin) - local path = vim.fn.stdpath "data" .. "/lazy/" .. plugin - if not vim.loop.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 +local hotpot_path = vim.fn.stdpath "data" .. "/lazy/" .. "hotpot.nvim" +vim.opt.runtimepath:prepend(hotpot_path) -ensure("folke", "lazy.nvim") -ensure("rktjmp", "hotpot.nvim") +local ok, hotpot = pcall(require, "hotpot") +if not ok then + vim.notify "You need to run the bootstrap!" + return +end -require("hotpot").setup { +hotpot.setup { provide_require_fennel = true, compiler = { modules = { -- cgit v1.2.3-70-g09d2