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
a439de385b
commit
0333185bfc
@ -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
Block a user