e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
14 lines
473 B
VimL
14 lines
473 B
VimL
" Author: Nils Leuzinger - https://github.com/PawkyPenguin
|
|
" Description: Basic scala support using fsc
|
|
|
|
function! s:IsSbt(buffer) abort
|
|
return index(split(getbufvar(a:buffer, '&filetype'), '\.'), 'sbt') >= 0
|
|
endfunction
|
|
|
|
call ale#linter#Define('scala', {
|
|
\ 'name': 'fsc',
|
|
\ 'executable': {buf -> s:IsSbt(buf) ? '' : 'fsc'},
|
|
\ 'command': '%e -Ystop-after:parser %t',
|
|
\ 'callback': 'ale#handlers#scala#HandleScalacLintFormat',
|
|
\ 'output_stream': 'stderr',
|
|
\})
|