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:
parent
d3433e3c55
commit
11c839f870
|
@ -33,7 +33,11 @@ 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 = "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
|
-- clone example_config repo
|
||||||
if input == "y" then
|
if input == "y" then
|
||||||
|
|
Loading…
Reference in New Issue