blob: 4abf1987a5cc6d3b14a5b0992f1ce45e88e8dfa4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
" Author: dzhou121 <dzhou121@gmail.com>
" Description: go build for Go files
function! s:FindGobuildScript() abort
return g:ale#util#stdin_wrapper . ' .go go build -o /dev/null'
endfunction
let g:ale#util#gobuild_script =
\ get(g:, 'ale_go_gobuild_script', s:FindGobuildScript())
call ale#linter#Define('go', {
\ 'name': 'go build',
\ 'output_stream': 'stderr',
\ 'executable': 'go',
\ 'command': g:ale#util#gobuild_script,
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
\})
|