1
0
Fork 0
mirror of synced 2024-05-29 21:41:11 -04:00
ultimate-vim/sources_non_forked/ale/ale_linters/go/gotype.vim
Amir Salihefendic cc997dc3d0 Updated plugins
2018-07-19 14:52:53 +02:00

20 lines
537 B
VimL

" Author: Jelte Fennema <github-public@jeltef.nl>
" Description: gotype for Go files
function! ale_linters#go#gotype#GetCommand(buffer) abort
if expand('#' . a:buffer . ':p') =~# '_test\.go$'
return ''
endif
return ale#path#BufferCdString(a:buffer) . ' gotype .'
endfunction
call ale#linter#Define('go', {
\ 'name': 'gotype',
\ 'output_stream': 'stderr',
\ 'executable': 'gotype',
\ 'command_callback': 'ale_linters#go#gotype#GetCommand',
\ 'callback': 'ale#handlers#go#Handler',
\ 'lint_file': 1,
\})