You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
726 B
VimL
24 lines
726 B
VimL
" Author: KabbAmine - https://github.com/KabbAmine
|
|
" Description: Coffee for checking coffee files
|
|
|
|
function! ale_linters#coffee#coffee#GetExecutable(buffer) abort
|
|
return ale#path#ResolveLocalPath(
|
|
\ a:buffer,
|
|
\ 'node_modules/.bin/coffee',
|
|
\ 'coffee'
|
|
\)
|
|
endfunction
|
|
|
|
function! ale_linters#coffee#coffee#GetCommand(buffer) abort
|
|
return ale_linters#coffee#coffee#GetExecutable(a:buffer)
|
|
\ . ' -cp -s'
|
|
endfunction
|
|
|
|
call ale#linter#Define('coffee', {
|
|
\ 'name': 'coffee',
|
|
\ 'executable_callback': 'ale_linters#coffee#coffee#GetExecutable',
|
|
\ 'command_callback': 'ale_linters#coffee#coffee#GetCommand',
|
|
\ 'output_stream': 'stderr',
|
|
\ 'callback': 'ale#handlers#gcc#HandleGCCFormat',
|
|
\})
|