1
0
Fork 0
mirror of synced 2024-05-28 04:51:12 -04:00
ultimate-vim/sources_non_forked/ale/autoload/ale/fixers/vfmt.vim
2021-05-05 10:25:00 +02:00

14 lines
388 B
VimL

" Author: fiatjaf <fiatjaf@alhur.es>
" Description: Integration of `v fmt` with ALE.
call ale#Set('v_vfmt_options', '')
function! ale#fixers#vfmt#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'v_v_executable')
let l:options = ale#Var(a:buffer, 'v_vfmt_options')
return {
\ 'command': ale#Escape(l:executable) . ' fmt' . ale#Pad(l:options)
\}
endfunction