aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/ft/apiblueprint.vim
blob: 2e91b42ef4c990f92c33fd2916dbda525184c927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" vim: ts=4 sw=4 et

function! neomake#makers#ft#apiblueprint#EnabledMakers() abort
    return executable('drafter') ? ['drafter'] : []
endfunction

function! neomake#makers#ft#apiblueprint#drafter() abort
    " Drafter only operates on a single file at a time, and therefore doesn't
    " bother to print out a file name with each error. We need to attach this
    " so that the quickfix list can function properly.
    return {
        \ 'args': ['-l', '-u'],
        \ 'errorformat': '%f: %t%[%^:]\\+: (%n) %m; line %l\, column %c%.%#',
        \ 'mapexpr': 'neomake_bufname . ": " . v:val'
        \ }
endfunction