2022-08-12 02:19:12 -04:00
|
|
|
vim.defer_fn(function()
|
|
|
|
pcall(require, "impatient")
|
|
|
|
end, 0)
|
|
|
|
|
2022-05-23 03:24:03 -04:00
|
|
|
require "core"
|
|
|
|
require "core.options"
|
2022-05-31 15:19:23 -04:00
|
|
|
|
2022-05-23 03:24:03 -04:00
|
|
|
-- setup packer + plugins
|
2022-08-05 23:58:05 -04: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 15:37:44 -04: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-05 23:58:05 -04:00
|
|
|
end
|
2022-05-23 05:24:59 -04:00
|
|
|
|
2022-06-25 20:54:52 -04:00
|
|
|
pcall(require, "custom")
|
2022-08-15 09:53:55 -04:00
|
|
|
|
|
|
|
require("core.utils").load_mappings()
|