summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/roles.py2
-rw-r--r--py/utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/py/roles.py b/py/roles.py
index 8f7f161..7c7cf13 100644
--- a/py/roles.py
+++ b/py/roles.py
@@ -2,7 +2,7 @@ import vim
import os
import configparser
-roles_config_path = os.path.expanduser('~/.vim/roles.ini') # TODO configure
+roles_config_path = os.path.expanduser(vim.eval("g:vim_ai_roles_config_file"))
roles = configparser.ConfigParser()
roles.read(roles_config_path)
diff --git a/py/utils.py b/py/utils.py
index 52e538d..6600fc3 100644
--- a/py/utils.py
+++ b/py/utils.py
@@ -264,7 +264,7 @@ def clear_echo_message():
vim.command("call feedkeys(':','nx')")
def load_role_config(role):
- roles_config_path = os.path.expanduser('~/.vim/roles.ini') # TODO configure
+ roles_config_path = os.path.expanduser(vim.eval("g:vim_ai_roles_config_file"))
roles = configparser.ConfigParser()
roles.read(roles_config_path)
if not role in roles: