1
0
Fork 0
mirror of synced 2024-11-17 22:45:34 -05:00
ultimate-vim/sources_non_forked/ale/ale_linters/scala/fsc.vim

15 lines
482 B
VimL
Raw Normal View History

2018-06-14 06:31:12 -04:00
" Author: Nils Leuzinger - https://github.com/PawkyPenguin
" Description: Basic scala support using fsc
2018-08-25 12:13:42 -04:00
function! s:IsSbt(buffer) abort
return index(split(getbufvar(a:buffer, '&filetype'), '\.'), 'sbt') >= 0
2018-06-14 06:31:12 -04:00
endfunction
call ale#linter#Define('scala', {
\ 'name': 'fsc',
2018-08-25 12:13:42 -04:00
\ 'executable_callback': {buf -> s:IsSbt(buf) ? '' : 'fsc'},
\ 'command': '%e -Ystop-after:parser %t',
2018-06-14 06:31:12 -04:00
\ 'callback': 'ale#handlers#scala#HandleScalacLintFormat',
\ 'output_stream': 'stderr',
\})