2022-08-12 06:19:12 +00:00
|
|
|
vim.defer_fn(function()
|
|
|
|
pcall(require, "impatient")
|
|
|
|
end, 0)
|
|
|
|
|
2022-05-23 07:24:03 +00:00
|
|
|
require "core"
|
|
|
|
require "core.options"
|
2022-05-31 19:19:23 +00:00
|
|
|
|
2022-05-23 07:24:03 +00:00
|
|
|
-- setup packer + plugins
|
2022-08-06 03:58:05 +00: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 }
|
|
|
|
|
|
|
|
-- install plugins + compile their configs
|
|
|
|
vim.cmd "packadd packer.nvim"
|
|
|
|
require "plugins"
|
|
|
|
vim.cmd "PackerSync"
|
2022-09-10 19:37:44 +00:00
|
|
|
|
|
|
|
-- install binaries from mason.nvim & tsparsers
|
|
|
|
vim.api.nvim_create_autocmd("User", {
|
|
|
|
pattern = "PackerComplete",
|
|
|
|
callback = function()
|
|
|
|
vim.cmd "bw | silent! MasonInstallAll" -- close packer window
|
|
|
|
require("packer").loader "nvim-treesitter"
|
|
|
|
end,
|
|
|
|
})
|
2022-08-06 03:58:05 +00:00
|
|
|
end
|
2022-05-23 09:24:59 +00:00
|
|
|
|
2022-06-26 00:54:52 +00:00
|
|
|
pcall(require, "custom")
|
2022-08-15 13:53:55 +00:00
|
|
|
|
|
|
|
require("core.utils").load_mappings()
|