From cd10647dd6260d138ace4337ffcc2dec8fe8db05 Mon Sep 17 00:00:00 2001 From: siduck Date: Wed, 28 Feb 2024 20:13:34 +0530 Subject: [PATCH] add mason bootstrap in main bootstrap file only --- lua/core/bootstrap.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lua/core/bootstrap.lua b/lua/core/bootstrap.lua index 50a8484..ee3f37d 100644 --- a/lua/core/bootstrap.lua +++ b/lua/core/bootstrap.lua @@ -33,7 +33,15 @@ M.lazy = function(install_path) require "plugins" -- mason packages & show post_bootstrap screen - require "nvchad.post_install"() + vim.cmd "MasonInstallAll" + local lastpkg = vim.g.mason_binaries_list[#vim.g.mason_binaries_list] + + -- Keep track of which mason pkgs get installed + require("mason-registry"):on("package:install:success", function(pkg) + if tostring(pkg) == "Package(name=" .. lastpkg .. ")" then + print "All done! Now read nvchad.com " + end + end) end M.gen_chadrc_template = function()