aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/ft/julia.vim
blob: a6fed9fa43a1672a57d93a754dbabe3e0ed7f94a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function! neomake#makers#ft#julia#EnabledMakers() abort
    return ['lint']
endfunction

function! neomake#makers#ft#julia#lint() abort
    return {
\       'errorformat': '%f:%l %t%*[^ ] %m',
\       'exe': 'julia',
\       'args': ['-e', '
\           try
\               using Lint
\           catch
\               println("$(basename(ARGS[1])):1 E999 Install Lint.jl: Pkg.add(""Lint"")");
\               exit(1)
\           end;
\           r = lintfile(ARGS[1]);
\           if !isempty(r)
\               display(r);
\               exit(1)
\           end
\       ']
\   }
endfunction
" vim: ts=4 sw=4 et