From 0333185bfc98aa6f3b728f59c4c08cfa39142587 Mon Sep 17 00:00:00 2001 From: Grigorii Khvatskii Date: Tue, 2 Jan 2024 06:42:34 -0500 Subject: [PATCH] Add support for non-interactive bootstrapping (#2528) https://github.com/NvChad/NvChad/pull/2528#issuecomment-1834599074 --------- Co-authored-by: Sidhanth Rathod --- lua/core/bootstrap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/core/bootstrap.lua b/lua/core/bootstrap.lua index b95f1ce..50a8484 100644 --- a/lua/core/bootstrap.lua +++ b/lua/core/bootstrap.lua @@ -40,7 +40,7 @@ M.gen_chadrc_template = function() local path = fn.stdpath "config" .. "/lua/custom" if fn.isdirectory(path) ~= 1 then - local input = fn.input "Do you want to install example custom config? (y/N): " + local input = vim.env.NVCHAD_EXAMPLE_CONFIG or fn.input "Do you want to install example custom config? (y/N): " if input:lower() == "y" then M.echo "Cloning example custom config repo..."