summaryrefslogtreecommitdiff
path: root/tests/mocks/vim.py
blob: 9dd88609ad4cdc0ddb49045b7b8e458af314c955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os

dirname = os.path.dirname(__file__)

def eval(cmd):
    match cmd:
        case 'g:vim_ai_debug_log_file':
            return '/tmp/vim_ai_debug.log'
        case 'g:vim_ai_roles_config_file':
            return os.path.join(dirname, '../resources/roles.ini')
        case 's:plugin_root':
            return os.path.join(dirname, '../..')
        case _:
            return None

def command(cmd):
    pass