From 5333f9f9e0aa7b9d73f08908b7af827016dcac21 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Mon, 30 Dec 2024 01:46:39 +0100 Subject: [PATCH] fix: change default values --- lua/chatgpt_nvim/config.lua | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lua/chatgpt_nvim/config.lua b/lua/chatgpt_nvim/config.lua index 33d6365..ce94a78 100644 --- a/lua/chatgpt_nvim/config.lua +++ b/lua/chatgpt_nvim/config.lua @@ -96,17 +96,18 @@ function M.load() initial_prompt = "", directories = { "." }, default_prompt_blocks = {}, - token_limit = 128000, + -- Changed default from 128000 to 16384 as requested + token_limit = 16384, project_name = "", debug = false, initial_files = {}, - - -- Additional new config flags preview_changes = false, interactive_file_selection = false, partial_acceptance = false, improved_debug = false, - enable_chunking = false + enable_chunking = false, + -- New default for step-by-step + enable_step_by_step = true } if fd then @@ -152,6 +153,10 @@ function M.load() if type(result.enable_chunking) == "boolean" then config.enable_chunking = result.enable_chunking end + -- Added logic to load enable_step_by_step from user config + if type(result.enable_step_by_step) == "boolean" then + config.enable_step_by_step = result.enable_step_by_step + end end end else @@ -184,4 +189,4 @@ function M.load() return config end -return M +return M \ No newline at end of file