Files
hanzo.vim/test/vim/pre_process/test_disable_pre_process.vader
w0rp 9a5514b9aa Close #24 - Add context-aware prompting
Add initial context-aware prompt editing by writing simple scripts.
2023-03-17 00:37:28 +00:00

21 lines
371 B
Plaintext

Before:
Save g:neural
unlet! g:neural
let g:input = {'prompt': 'Do something.'}
call neural#config#Load()
After:
unlet! g:input
Restore
Given go(An empty Go file):
Execute(It should be possible to disable pre-processing):
let g:neural.pre_process.enabled = 0
call neural#PreProcess(bufnr(''), g:input)
AssertEqual 'Do something.', g:input.prompt