diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-04 21:15:20 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-04-04 21:15:20 +0200 |
| commit | e7cdbfb658e903452232f15c4f355bdefcbeacd9 (patch) | |
| tree | ec529563e15bb987ff2c044078a7114fd8d47b19 /doc/vim-ai.txt | |
| parent | c1868ed4dcbb8acaf637b129f8a0f717a41cf5f2 (diff) | |
| parent | 95d1df263e27a06d3bc6f50f345c79ca0a3cc0b7 (diff) | |
| download | vim-ai-e7cdbfb658e903452232f15c4f355bdefcbeacd9.tar.gz | |
Merge branch 'main' into next
Diffstat (limited to 'doc/vim-ai.txt')
| -rw-r--r-- | doc/vim-ai.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt index 24a1ebe..d9c3eeb 100644 --- a/doc/vim-ai.txt +++ b/doc/vim-ai.txt @@ -54,7 +54,6 @@ https://platform.openai.com/docs/api-reference/completions *:AIChat* - :AIChat continue or start a new conversation. (selection)? :AIChat {instruction}? start a new conversation given the selection, the instruction or both @@ -67,11 +66,19 @@ Options: > \ "temperature": 1, \ "request_timeout": 10, \ }, + \ "ui": { + \ "open_chat_command": "below new | call vim_ai#MakeScratchWindow()", + \ }, \} Check OpenAI docs for more infomration: https://platform.openai.com/docs/api-reference/chat + *:AIRedo* + +:AIRedo repeat last AI command in order to re-try + or get an alternative completion. + CONFIGURATION *vim-ai-config* To customize the default configuration, initialize the config variable with @@ -100,6 +107,9 @@ Examples how configure key bindins and customize commands: > xnoremap <leader>c :AIChat<CR> nnoremap <leader>c :AIChat<CR> + " redo last AI command + nnoremap <leader>r :AIRedo<CR> + " command with custom context (vim-ai functions: AIRun, AIEditRun, AIChatRun) command! -range -nargs=? AICode <line1>,<line2>call AIRun(<range>, "Programming syntax is " . &filetype . ", " . <f-args>) |