diff --git a/nvim/init.lua b/nvim/init.lua index 2bf8f14e9..2514f9ed9 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -1,21 +1,2 @@ -local impatient_ok, impatient = pcall(require, "impatient") -if impatient_ok then impatient.enable_profile() end - -for _, source in ipairs { - "core.utils", - "core.options", - "core.bootstrap", - "core.diagnostics", - "core.autocmds", - "core.mappings", - "configs.which-key-register", -} do - local status_ok, fault = pcall(require, source) - if not status_ok then vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. fault) end -end - -astronvim.conditional_func(astronvim.user_plugin_opts("polish", nil, false)) - -if vim.fn.has "nvim-0.8" ~= 1 or vim.version().prerelease then - vim.schedule(function() astronvim.notify("Unsupported Neovim Version! Please check the requirements", "error") end) -end +-- bootstrap lazy.nvim, LazyVim and your plugins +require("config.lazy")