summaryrefslogtreecommitdiff
path: root/plugin/vim-ai.vim
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-04-10 10:31:46 +0200
committerMartin Bielik <mx.bielik@gmail.com>2023-04-10 10:31:46 +0200
commitf8323fe373f0470010a289c3fb1b350a5972cfda (patch)
tree3265e36222bb015dda80df7096e6cb0bc064c51c /plugin/vim-ai.vim
parente7a16f5484b74e49dc51a4a0db81566565eae105 (diff)
downloadvim-ai-f8323fe373f0470010a289c3fb1b350a5972cfda.tar.gz
populate options in chat
Diffstat (limited to '')
-rw-r--r--plugin/vim-ai.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/vim-ai.vim b/plugin/vim-ai.vim
index 4ed5f34..5a6e3e0 100644
--- a/plugin/vim-ai.vim
+++ b/plugin/vim-ai.vim
@@ -34,6 +34,7 @@ let g:vim_ai_chat_default = {
\ "ui": {
\ "open_chat_command": "below new | call vim_ai#MakeScratchWindow()",
\ "code_syntax_enabled": 1,
+\ "populate_options": 0,
\ },
\}
@@ -137,6 +138,7 @@ function! AIChatRun(is_selection, ...) range
let s:last_is_selection = a:is_selection
let options = g:vim_ai_chat['options']
+ let ui = g:vim_ai_chat['ui']
execute "py3file " . s:chat_py
set nopaste
endfunction