mirror of
1
0
Fork 0
ultimate-vim/sources_non_forked/ale/autoload/ale/fixers/ptop.vim

18 lines
542 B
VimL

" Author: BarrOff https://github.com/BarrOff
" Description: Integration of ptop with ALE.
call ale#Set('pascal_ptop_executable', 'ptop')
call ale#Set('pascal_ptop_options', '')
function! ale#fixers#ptop#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'pascal_ptop_executable')
let l:options = ale#Var(a:buffer, 'pascal_ptop_options')
return {
\ 'command': ale#Escape(l:executable)
\ . (empty(l:options) ? '' : ' ' . l:options)
\ . ' %s %t',
\ 'read_temporary_file': 1,
\}
endfunction