We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c80c0b commit 1d6911fCopy full SHA for 1d6911f
1 file changed
lua/CopilotChat/init.lua
@@ -729,6 +729,19 @@ function M.open(config)
729
utils.return_to_normal_mode()
730
731
M.chat:open(config)
732
+
733
+ local message = M.chat:get_message('user')
734
+ if message then
735
+ local prompt = insert_sticky(message.content, config)
736
+ if prompt then
737
+ M.chat:add_message({
738
+ role = 'user',
739
+ content = '\n' .. prompt,
740
+ }, true)
741
+ M.chat:finish()
742
+ end
743
744
745
M.chat:follow()
746
M.chat:focus()
747
end
0 commit comments