diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-10 10:31:46 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-04-10 10:31:46 +0200 |
| commit | f8323fe373f0470010a289c3fb1b350a5972cfda (patch) | |
| tree | 3265e36222bb015dda80df7096e6cb0bc064c51c /py/utils.py | |
| parent | e7a16f5484b74e49dc51a4a0db81566565eae105 (diff) | |
| download | vim-ai-f8323fe373f0470010a289c3fb1b350a5972cfda.tar.gz | |
populate options in chat
Diffstat (limited to '')
| -rw-r--r-- | py/utils.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/py/utils.py b/py/utils.py index bcc5309..dee7d42 100644 --- a/py/utils.py +++ b/py/utils.py @@ -11,10 +11,6 @@ def load_api_key(): pass return api_key.strip() -def make_options(options_custom = {}): - options_config = vim.eval("options") - return {**options_config, **options_custom} - def make_request_options(options): request_options = {} request_options['model'] = options['model'] @@ -55,3 +51,6 @@ def parse_chat_messages(chat_content): return messages +def vim_break_undo_sequence(): + # breaks undo sequence (https://vi.stackexchange.com/a/29087) + vim.command("let &ul=&ul") |