Wiki

Clone wiki

VimLabo / don

autocmd! filetype * :call s:createWatchdogsCmd(&filetype)
function! s:createWatchdogsCmd(filetype)
    if !exists('g:quickrun_config')
        return
    endif
    let key = filter(keys(g:quickrun_config), 'v:val == (a:filetype . ''/watchdogs_checker'')')
    if empty(key)
        return
    endif
    command! -buffer -nargs=* Watchdogs_Run
endfunction

Updated