-
Notifications
You must be signed in to change notification settings - Fork 30
Customize Runner
Linwei edited this page Feb 20, 2020
·
5 revisions
As a fully customizable plugin, this plugin allows you specify how to run your task by adding new item to dictionary g:asyncrun_runner
:
function! s:my_runner(command)
echo "run: " . a:command
endfunc
let g:asyncrun_runner = get(g:, 'asyncrun_runner', {})
let g:asyncrun_runner.test = { cmd -> s:my_runner(cmd) }
Then, you can change g:asynctasks_term_pos
to "test"
, and when you are running your task, your runner function will be called.
For more information, see the wiki page of asyncrun.vim
: customize runner.