2022-08-12 08:19:12 +02:00
|
|
|
vim.defer_fn(function()
|
|
|
|
pcall(require, "impatient")
|
|
|
|
end, 0)
|
|
|
|
|
2022-05-23 09:24:03 +02:00
|
|
|
require "core"
|
|
|
|
require "core.options"
|
2022-05-31 21:19:23 +02:00
|
|
|
|
2022-11-22 03:59:48 +01:00
|
|
|
pcall(function()
|
|
|
|
loadfile(vim.g.base46_cache .. "bg")()
|
|
|
|
end)
|
|
|
|
|
2022-05-23 09:24:03 +02:00
|
|
|
-- setup packer + plugins
|
2022-08-06 05:58:05 +02:00
|
|
|
local fn = vim.fn
|
|
|
|
local install_path = fn.stdpath "data" .. "/site/pack/packer/opt/packer.nvim"
|
|
|
|
|
|
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
|
|
|
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "#1e222a" })
|
|
|
|
print "Cloning packer .."
|
|
|
|
fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }
|
|
|
|
|
2022-11-19 07:15:33 +01:00
|
|
|
os.execute("mkdir -p " .. vim.g.base46_cache)
|
2022-11-17 17:02:55 +01:00
|
|
|
|
2022-08-06 05:58:05 +02:00
|
|
|
-- install plugins + compile their configs
|
|
|
|
vim.cmd "packadd packer.nvim"
|
2022-11-17 18:46:28 +01:00
|
|
|
|
2022-08-06 05:58:05 +02:00
|
|
|
require "plugins"
|
|
|
|
vim.cmd "PackerSync"
|
2022-09-10 21:37:44 +02:00
|
|
|
|
|
|
|
-- install binaries from mason.nvim & tsparsers
|
|
|
|
vim.api.nvim_create_autocmd("User", {
|
|
|
|
pattern = "PackerComplete",
|
|
|
|
callback = function()
|
2022-11-17 18:46:28 +01:00
|
|
|
require("base46").load_all_highlights()
|
|
|
|
|
2022-09-10 21:37:44 +02:00
|
|
|
vim.cmd "bw | silent! MasonInstallAll" -- close packer window
|
|
|
|
require("packer").loader "nvim-treesitter"
|
2022-12-03 06:01:44 +01:00
|
|
|
|
|
|
|
local statusline_theme = require("core.utils").load_config().ui.statusline.theme
|
|
|
|
vim.opt.statusline = "%!v:lua.require('nvchad_ui.statusline." .. statusline_theme .. "').run()"
|
2022-09-10 21:37:44 +02:00
|
|
|
end,
|
|
|
|
})
|
2022-08-06 05:58:05 +02:00
|
|
|
end
|
2022-05-23 11:24:59 +02:00
|
|
|
|
2022-06-26 02:54:52 +02:00
|
|
|
pcall(require, "custom")
|
2022-08-15 15:53:55 +02:00
|
|
|
|
|
|
|
require("core.utils").load_mappings()
|