fix: add project name to initial prompt, improve basic prompt

This commit is contained in:
2025-01-31 15:09:10 +01:00
parent d5b05ede36
commit 50ba937ae0
2 changed files with 7 additions and 1 deletions

View File

@@ -173,6 +173,12 @@ function M.load()
end
end
-- Include project name in the final initial prompt, if set
if config.project_name ~= "" then
config.initial_prompt =
"[Project Name: " .. config.project_name .. "]\n\n" .. config.initial_prompt
end
if config.debug then
vim.api.nvim_out_write("[chatgpt_nvim:config] Loaded config from: " .. path .. "\n")
vim.api.nvim_out_write("[chatgpt_nvim:config] Debug logging is enabled.\n")