From 8b738e33887e9cf956aeb3db2fe28c7f5069a643 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Mon, 3 Apr 2023 20:14:48 +0200 Subject: handle roles in python --- plugin/vim-ai.vim | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugin/vim-ai.vim') diff --git a/plugin/vim-ai.vim b/plugin/vim-ai.vim index 6192f1d..dba5998 100644 --- a/plugin/vim-ai.vim +++ b/plugin/vim-ai.vim @@ -116,14 +116,7 @@ function! AIChatRun(is_selection, ...) range let instruction = a:0 ? a:1 : "" let prompt = MakePrompt(a:is_selection, lines, instruction) endif - let is_outside_of_chat_window = search('^>>> user$', 'nw') == 0 - if is_outside_of_chat_window - " write an user prompt - execute "normal! i>>> user\n\n" . prompt - else - " appending prompt into restored conversation - execute "normal! Gi" . prompt - endif + execute "normal! Gi" . prompt endif let s:last_command = "chat" -- cgit v1.2.3