1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
nnoremap q :qall!<cr>
silent edit main.tex
if empty($INMAKE) | finish | endif
let s:candidates = vimtex#test#completion('\usepackage{', 'cleve')
call assert_equal(s:candidates[0].word, 'cleveref')
let s:candidates = vimtex#test#completion('\RequirePackage{', 'am')
call assert_true(len(s:candidates) >= 1)
let s:candidates = vimtex#test#completion('\PassOptionsToPackage{option}{', 'am')
call assert_true(len(s:candidates) >= 1)
call vimtex#test#finished()
|