From 2b9aa5f35f0dfe5196afa8b5f395304b17d728b7 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Sat, 8 Feb 2025 23:50:50 +0100 Subject: [PATCH] feat: adjust prompt --- lua/chatgpt_nvim/prompts.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/chatgpt_nvim/prompts.lua b/lua/chatgpt_nvim/prompts.lua index 7354007..12eb7f3 100644 --- a/lua/chatgpt_nvim/prompts.lua +++ b/lua/chatgpt_nvim/prompts.lua @@ -412,10 +412,15 @@ local M = { If any detail is unclear (such as file content or operation intent), ask your clarifying questions in plain text (not in YAML). - **Step 2: Inspect Files** Always use `readFile` to check file content before modifying. - - **Step 3: Make Changes** + - **Step 3: Repeat Steps 1 & 2 as Needed** + If further context is required, ask questions and read files again. + - **Step 4: Make Changes** Only after reading the file, proceed to use `editFile` or `replace_in_file`. - - **Step 4: Execute Commands if Needed** + - **Step 5: Execute Commands if Needed** Use `executeCommand` as necessary, always within the YAML block. + - **Step 6: Tell that request is complete** + Once all operations are done, confirm that the request is complete with a little summary. + - **Step 7: Repeat other steps as necessary** #### Example YAML Block