1
0
Fork 0
mirror of synced 2024-11-14 21:18:58 -05:00
ultimate-vim/sources_non_forked/ale/ale_linters/go/gofmt.vim

16 lines
434 B
VimL
Raw Normal View History

" Author: neersighted <bjorn@neersighted.com>
" Description: gofmt for Go files
2019-08-22 11:36:17 -04:00
function! ale_linters#go#gofmt#GetCommand(buffer) abort
return ale#go#EnvString(a:buffer)
\ . '%e -e %t'
endfunction
call ale#linter#Define('go', {
\ 'name': 'gofmt',
\ 'output_stream': 'stderr',
\ 'executable': 'gofmt',
2019-08-22 11:36:17 -04:00
\ 'command': function('ale_linters#go#gofmt#GetCommand'),
\ 'callback': 'ale#handlers#unix#HandleAsError',
\})