aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.vim/autoload/neomake/makers/ft/julia.vim
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.vim/autoload/neomake/makers/ft/julia.vim')
-rw-r--r--dotfiles/.vim/autoload/neomake/makers/ft/julia.vim24
1 files changed, 24 insertions, 0 deletions
diff --git a/dotfiles/.vim/autoload/neomake/makers/ft/julia.vim b/dotfiles/.vim/autoload/neomake/makers/ft/julia.vim
new file mode 100644
index 0000000..a6fed9f
--- /dev/null
+++ b/dotfiles/.vim/autoload/neomake/makers/ft/julia.vim
@@ -0,0 +1,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