diff options
| author | Martin Bielik <martin.bielik@instea.sk> | 2024-12-12 23:10:30 +0100 |
|---|---|---|
| committer | Martin Bielik <martin.bielik@instea.sk> | 2024-12-12 23:10:30 +0100 |
| commit | 3cdf03bee337918088e796e484a4a7c985811ad0 (patch) | |
| tree | a9b2200ad1d9a637b5800282bed776cee8833258 /py/utils.py | |
| parent | c9bc248be2af4b514cef067299255428c9576ef6 (diff) | |
| download | vim-ai-3cdf03bee337918088e796e484a4a7c985811ad0.tar.gz | |
fixed complete command roles after refactoring
Diffstat (limited to '')
| -rw-r--r-- | py/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/utils.py b/py/utils.py index 849152e..0720db8 100644 --- a/py/utils.py +++ b/py/utils.py @@ -44,13 +44,13 @@ def load_api_key(config_token_file_path): return (api_key, org_id) -def load_config_and_prompt(): +def load_config_and_prompt(command_type): prompt, role_options = parse_prompt_and_role(vim.eval("l:prompt")) config = vim.eval("l:config") config['options'] = { **normalize_options(config['options']), **normalize_options(role_options['options_default']), - **normalize_options(role_options['options_chat']), + **normalize_options(role_options['options_' + command_type]), } return prompt, config |