summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-04-02 23:41:48 +0200
committerMartin Bielik <mx.bielik@gmail.com>2023-04-02 23:41:48 +0200
commit923746952c3d4794343f0505f4a6389fb6926bdb (patch)
treea46f23be735677fad6c01c3dc7173d28290057a2 /README.md
parentb209554bf26d4662d126aa664875fd91dc803f62 (diff)
downloadvim-ai-923746952c3d4794343f0505f4a6389fb6926bdb.tar.gz
open chat command docu
Diffstat (limited to 'README.md')
-rw-r--r--README.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8900f2f..f92377c 100644
--- a/README.md
+++ b/README.md
@@ -105,6 +105,37 @@ nnoremap <leader>c :AIChat<CR>
nnoremap <leader>r :AIRedo<CR>
```
+
+### Interface configuration
+
+Default interface configuration:
+
+```vim
+let g:vim_ai_chat = {
+\ "ui": {
+\ "open_chat_command": "below new | call vim_ai#MakeScratchWindow()",
+\ },
+\}
+```
+
+Tips:
+
+```vim
+" restore conversation from the file
+let g:vim_ai_chat = {
+\ "ui": {
+\ "open_chat_command": "below new /tmp/last_conversation.aichat",
+\ },
+\}
+
+" open chat in a new tab
+let g:vim_ai_chat = {
+\ "ui": {
+\ "open_chat_command": "tabnew | call vim_ai#MakeScratchWindow()",
+\ },
+\}
+```
+
### Completion configuration
Request to the OpenAI API can be configured for each command.