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 <siduck@tutanota.com>
This commit is contained in:
Max Chechel 2023-06-18 16:51:36 +04:00 committed by GitHub
parent d3433e3c55
commit 11c839f870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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