mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-26 04:00:29 +08:00
12 lines
331 B
VimL
Vendored
12 lines
331 B
VimL
Vendored
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
|