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:
parent
e121bde8d8
commit
2fedda14ed
|
@ -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..."
|
||||||
|
|
Loading…
Reference in New Issue