1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-17 04:35:41 +08:00
2021-02-10 10:31:34 +08:00

18 lines
438 B
VimL
Vendored

" Author: harttle <yangjvn@126.com>
" Description: Apply fecs format to a file.
function! ale#fixers#fecs#Fix(buffer) abort
let l:executable = ale#handlers#fecs#GetExecutable(a:buffer)
if !executable(l:executable)
return 0
endif
let l:config_options = ' format --replace=true %t'
return {
\ 'command': ale#Escape(l:executable) . l:config_options,
\ 'read_temporary_file': 1,
\}
endfunction