Files
dotfiles/dot_vim/plugged/vimtex/test/test-completion-bibstyle/test.vim

17 lines
325 B
VimL

set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
set nomore
nnoremap q :qall!<cr>
silent edit main.tex
if empty($INMAKE) | finish | endif
let s:candidates = vimtex#test#completion('\bibliographystyle{', '')
call assert_true(index(map(s:candidates, 'v:val.word'), 'unsrt') > 0)
call vimtex#test#finished()