Add support for non-interactive bootstrapping (#2528)

https://github.com/NvChad/NvChad/pull/2528#issuecomment-1834599074

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
This commit is contained in:
Grigorii Khvatskii
2024-01-02 17:12:34 +05:30
committed by GitHub
co-authored by Sidhanth Rathod
parent e121bde8d8
commit 2fedda14ed
+1 -1
View File
@@ -40,7 +40,7 @@ M.gen_chadrc_template = function()
local path = fn.stdpath "config" .. "/lua/custom" local path = fn.stdpath "config" .. "/lua/custom"
if fn.isdirectory(path) ~= 1 then 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 if input:lower() == "y" then
M.echo "Cloning example custom config repo..." M.echo "Cloning example custom config repo..."