1
0
Fork 0
mirror of synced 2024-05-26 03:51:13 -04:00
ultimate-vim/sources_non_forked/ale/ale_linters/scala/fsc.vim
Amir Salihefendic f50b2142bc Updated plugins
2019-03-08 08:04:56 -03:00

15 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',
\})