nvim-config/init.lua

31 lines
939 B
Lua

-- Hotpot enables fennel support
-- https://github.com/rktjmp/hotpot.nvim
local hotpot_path = vim.fn.stdpath('data') .. '/lazy/hotpot.nvim'
if vim.fn.empty(vim.fn.glob(hotpot_path)) > 0 then
print("Could not find hotpot.nvim, cloning new copy to", hotpot_path)
vim.fn.system({'git', 'clone',
'https://github.com/rktjmp/hotpot.nvim', hotpot_path})
vim.cmd("helptags " .. hotpot_path .. "/doc")
end
-- Lazy is the package manager
-- https://github.com/folke/lazy.nvim
local lazy_path = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazy_path) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazy_path,
})
end
vim.opt.rtp:prepend({hotpot_path, lazy_path})
require("hotpot")
-- the rest of this config is written in Fennel
-- https://fennel-lang.org/
require("plugins")