1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
" VimTeX - LaTeX plugin for Vim
"
" Maintainer: Karl Yngve LervÄg
" Email: karl.yngve@gmail.com
"
function! vimtex#compiler#generic#init(options) abort " {{{1
return s:compiler.new(a:options)
endfunction
" }}}1
let s:compiler = vimtex#compiler#_template#new({
\ 'name' : 'generic',
\ 'command' : '',
\})
function! s:compiler.__check_requirements() abort dict " {{{1
if empty(self.command)
call vimtex#log#warning('Please specify the command to run!')
let self.enabled = v:false
endif
endfunction
" }}}1
function! s:compiler.__build_cmd(passed_options) abort dict " {{{1
return self.command->substitute(
\ '@tex',
\ vimtex#util#shellescape(b:vimtex.tex),
\ 'g'
\)
\ .. a:passed_options
endfunction
" }}}1
|