more more more
This commit is contained in:
29
init.lua
29
init.lua
@ -12,33 +12,22 @@ 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/squibid/dep",
|
||||
path })
|
||||
if not vim.uv.fs_stat(path) then
|
||||
vim.fn.system({ "git", "clone", "--depth=1", "https://git.squi.bid/squibid/dep",
|
||||
"--branch=lazy", path })
|
||||
end
|
||||
vim.opt.rtp:prepend(path)
|
||||
vim.cmd("packadd dep")
|
||||
_G.dep_short = require("dep.lazy.loader.short")
|
||||
|
||||
-- load plugins
|
||||
require("dep") {
|
||||
{ "squibid/dep",
|
||||
url = "https://git.squi.bid/squibid/dep",
|
||||
branch = "dev"
|
||||
branch = "lazy"
|
||||
},
|
||||
|
||||
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
|
||||
modules = {
|
||||
prefix = "conf.plugins"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user