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

function! neomake#makers#ft#zsh#EnabledMakers() abort
    return ['zsh']
endfunction

" Note: newer versions of shellcheck do not support zsh.
function! neomake#makers#ft#zsh#shellcheck() abort
    let maker = neomake#makers#ft#sh#shellcheck()
    let maker.args += ['--shell', 'zsh']
    return maker
endfunction

function! neomake#makers#ft#zsh#zsh() abort
    return {
        \ 'args': ['-n'],
        \ 'errorformat': '%E%f:%l: %m'
        \}
endfunction