From 8402371e6af33dcf6962ffbc8cd73be0e36f6812 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Tue, 17 Dec 2024 18:43:51 +0100 Subject: introduced pre-defined default roles --- py/roles.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'py/roles.py') diff --git a/py/roles.py b/py/roles.py index 692ac6c..94bcdb4 100644 --- a/py/roles.py +++ b/py/roles.py @@ -7,13 +7,7 @@ if "PYTEST_VERSION" in os.environ: roles_py_imported = True def load_ai_role_names(command_type): - roles_config_path = os.path.expanduser(vim.eval("g:vim_ai_roles_config_file")) - if not os.path.exists(roles_config_path): - raise Exception(f"Role config file does not exist: {roles_config_path}") - - roles = configparser.ConfigParser() - roles.read(roles_config_path) - + roles = read_role_files() enhance_roles_with_custom_function(roles) role_names = set() -- cgit v1.2.3