Files
nvim/init.lua
2025-05-31 03:32:58 -04:00

44 lines
942 B
Lua

-- TODO: after switching to dep with lazy loading check out vim-startuptime
-- again
_G.core = require("core")
-- enable performance stuff
vim.loader.enable()
-- load user config
require("conf")
-- bootstrap plugin manager
local path = vim.fn.stdpath("data").."/site/pack/deps/opt/dep"
if vim.fn.empty(vim.fn.glob(path)) > 0 then
vim.fn.system({ "git", "clone", "--depth=1", "https://git.squi.bid/dep",
path })
end
vim.cmd("packadd dep")
-- load plugins
require("dep") {
{ "squibid/dep",
url = "https://git.squi.bid/dep",
branch = "dev"
},
load = function()
-- aquire all plugin specs
local plugs = {}
for _, file in ipairs(vim.api.nvim_get_runtime_file(
"lua/conf/plugins/*.lua", true)) do
local ret = require("conf.plugins."..file:gsub("^.*/", ""):gsub("%.lua$",
""))
if type(ret) ~= "boolean" then
plugs[#plugs + 1] = ret
end
end
return plugs
end
}