From 1ca0b1fe63132254bda761df543955b6a86f8201 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 23 Jan 2023 22:04:00 +0100 Subject: Refactor init --- init.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 8816adb..f82c841 100644 --- a/init.lua +++ b/init.lua @@ -1,13 +1,11 @@ local hotpot_path = vim.fn.stdpath "data" .. "/lazy/" .. "hotpot.nvim" -vim.opt.runtimepath:prepend(hotpot_path) - -local ok, hotpot = pcall(require, "hotpot") -if not ok then +if not vim.loop.fs_stat(hotpot_path) then vim.notify "You need to run the bootstrap!" return end +vim.opt.runtimepath:prepend(hotpot_path) -hotpot.setup { +require("hotpot").setup { provide_require_fennel = true, compiler = { modules = { -- cgit v1.2.3-70-g09d2