1
0
Fork 0
mirror of synced 2024-05-28 21:11:12 -04:00
ultimate-vim/sources_non_forked/ale/autoload/ale/fixers/gomod.vim
Amir Salihefendic 3aefdbd21a Updated plugins
2019-08-22 17:36:17 +02:00

12 lines
331 B
VimL

call ale#Set('go_go_executable', 'go')
function! ale#fixers#gomod#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'go_go_executable')
let l:env = ale#go#EnvString(a:buffer)
return {
\ 'command': l:env . ale#Escape(l:executable) . ' mod edit -fmt %t',
\ 'read_temporary_file': 1,
\}
endfunction