vim.defer_fn(function() pcall(require, "impatient") end, 0) -- setup packer + plugins 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" end local modules = { "core.options", "core.packer", } for _, module in ipairs(modules) do local ok, err = pcall(require, module) if not ok then error("Error loading " .. module .. "\n\n" .. err) end end require ("core.utils").load_mappings() vim.api.nvim_command("colorscheme gruvbox-baby")