feat(bootstrap): indicate that no is the default answer

Indicates that the default answer would be *no* if the user provide any input other than `y`
This commit is contained in:
Daniel Boll 2023-03-30 23:44:25 +00:00 committed by Sidhanth Rathod
parent ffdb4fc5e5
commit 800d066aab

View file

@ -48,7 +48,7 @@ end
M.gen_chadrc_template = function() M.gen_chadrc_template = function()
if not vim.api.nvim_get_runtime_file("lua/custom/chadrc.lua", false)[1] then if not vim.api.nvim_get_runtime_file("lua/custom/chadrc.lua", false)[1] then
local path = vim.fn.stdpath "config" .. "/lua/custom/" local path = vim.fn.stdpath "config" .. "/lua/custom/"
local input = vim.fn.input "Do you want to install example custom config? (y/n) : " local input = vim.fn.input "Do you want to install example custom config? (y/N) : "
if input == "y" then if input == "y" then
M.echo "cloning example custom config repo ..." M.echo "cloning example custom config repo ..."