diff --git a/lua/core/bootstrap.lua b/lua/core/bootstrap.lua index b00fc09..6ffc0bf 100644 --- a/lua/core/bootstrap.lua +++ b/lua/core/bootstrap.lua @@ -33,7 +33,11 @@ end M.gen_chadrc_template = function() if not vim.api.nvim_get_runtime_file("lua/custom/chadrc.lua", false)[1] then 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 = "N" + + if next(vim.api.nvim_list_uis()) then + input = vim.fn.input "Do you want to install example custom config? (y/N) : " + end -- clone example_config repo if input == "y" then