diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-03 20:14:48 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-04-03 20:35:35 +0200 |
| commit | 8b738e33887e9cf956aeb3db2fe28c7f5069a643 (patch) | |
| tree | e9668c0eb5c432d370f725fc64e1e62341c3818c /plugin/vim-ai.vim | |
| parent | 4029d16d1fb58e56b7eb67bb037e9644838fef24 (diff) | |
| download | vim-ai-8b738e33887e9cf956aeb3db2fe28c7f5069a643.tar.gz | |
handle roles in python
Diffstat (limited to 'plugin/vim-ai.vim')
| -rw-r--r-- | plugin/vim-ai.vim | 9 |
1 files changed, 1 insertions, 8 deletions
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" |