summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-23 22:04:00 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-23 22:04:00 +0100
commit1ca0b1fe63132254bda761df543955b6a86f8201 (patch)
treec87d7f143113f960071ef8a071689957c8bfe62f /init.lua
parent79548ab5fbf0f23255aca145569026227450f109 (diff)
Refactor init
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files 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 = {