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

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