Skip to content

Commit f2cfee7

Browse files
committed
fix: change callback_type to prepend_lines for doc command
When generating documentation, the default replacement behavior replaces the code with the document. Changed to prepend_lines so documentation is added above the code instead of replacing it.
1 parent 3c3925b commit f2cfee7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/codegpt/config.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ local default_commands = {
5858
cpp = "Use doxygen style comments for functions.",
5959
java = "Use JavaDoc style comments for functions.",
6060
},
61+
callback_type = "prepend_lines",
6162
},
6263
opt = {
6364
user_message_template = "I have the following {{language}} code: ```{{filetype}}\n{{text_selection}}```\nOptimize this code. {{language_instructions}} Only return the code snippet and nothing else.",

0 commit comments

Comments
 (0)