2021-10-20 12:05:18 -04:00
|
|
|
local init_path = debug.getinfo(1, "S").source:sub(2)
|
|
|
|
local base_dir = init_path:match("(.*[/\\])"):sub(1, -2)
|
|
|
|
|
|
|
|
if not vim.tbl_contains(vim.opt.rtp:get(), base_dir) then
|
|
|
|
vim.opt.rtp:append(base_dir)
|
2021-09-13 11:28:15 +02:00
|
|
|
end
|
2021-07-31 11:28:59 -07:00
|
|
|
|
2022-10-03 00:56:23 +00:00
|
|
|
reload = require("lvim.utils.reload").reload
|
2021-09-09 00:29:44 +08:00
|
|
|
|
2022-10-03 00:56:23 +00:00
|
|
|
reload("lvim.bootstrap"):init(base_dir)
|
2021-07-31 11:28:59 -07:00
|
|
|
|
2022-10-03 00:56:23 +00:00
|
|
|
reload("lvim.config"):load()
|
2021-08-26 12:49:29 +02:00
|
|
|
|
2022-10-03 00:56:23 +00:00
|
|
|
local plugins = reload "lvim.plugins"
|
|
|
|
|
|
|
|
reload("lvim.plugin-loader").load { plugins, lvim.plugins }
|
|
|
|
|
|
|
|
local Log = reload "lvim.core.log"
|
2021-09-13 11:28:15 +02:00
|
|
|
Log:debug "Starting LunarVim"
|
2021-08-26 12:49:29 +02:00
|
|
|
|
2022-10-03 00:56:23 +00:00
|
|
|
local commands = reload "lvim.core.commands"
|
2021-07-26 19:14:23 +02:00
|
|
|
commands.load(commands.defaults)
|
|
|
|
|
2022-10-03 00:56:23 +00:00
|
|
|
reload("lvim.lsp").setup()
|