You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: lua/codegpt/config.lua
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ local default_commands = {
58
58
cpp="Use doxygen style comments for functions.",
59
59
java="Use JavaDoc style comments for functions.",
60
60
},
61
+
callback_type="prepend_lines",
61
62
},
62
63
opt= {
63
64
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