34 lines
683 B
Lua
34 lines
683 B
Lua
-- load core utilities
|
|
_G.core = require("core")
|
|
|
|
-- enable performance stuff
|
|
vim.loader.enable()
|
|
|
|
-- load user config
|
|
require("conf")
|
|
|
|
-- setup lsp stuff
|
|
core.lsp.setup()
|
|
|
|
-- bootstrap plugin manager
|
|
local path = vim.fn.stdpath("data").."/site/pack/deps/opt/dep"
|
|
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 = "lazy"
|
|
},
|
|
|
|
modules = {
|
|
prefix = "conf.plugins"
|
|
}
|
|
}
|