From 11c839f870cfa8b75a9f847cba11fdfee7690856 Mon Sep 17 00:00:00 2001 From: Max Chechel Date: Sun, 18 Jun 2023 16:51:36 +0400 Subject: [PATCH] Defaulting to not installing custom config in --headless mode (#2132) * Defaulting to not installing custom config in --headless mode * Update bootstrap.lua --------- Co-authored-by: siduck --- lua/core/bootstrap.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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