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

17 lines
551 B
VimL
Raw Normal View History

2019-05-17 10:09:13 -04:00
" Author: riley-martine <riley.martine@protonmail.com>
" Description: Integration of latexindent with ALE.
call ale#Set('tex_latexindent_executable', 'latexindent')
call ale#Set('tex_latexindent_options', '')
function! ale#fixers#latexindent#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'tex_latexindent_executable')
let l:options = ale#Var(a:buffer, 'tex_latexindent_options')
return {
\ 'command': ale#Escape(l:executable)
2020-12-04 16:15:32 -05:00
\ . ' -l'
2019-05-17 10:09:13 -04:00
\ . (empty(l:options) ? '' : ' ' . l:options)
\}
endfunction