set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on

set nomore

nnoremap q :qall!<cr>

let g:vimtex_cache_root = '.'
let g:vimtex_cache_persistent = 0

silent edit test-custom-cls-speed.tex

if empty($INMAKE) | finish | endif

" call vimtex#profile#start()

" " Test commands from custom classes for speed
let s:candidates = vimtex#test#completion('\', '')
call assert_true(len(s:candidates) > 0)

" call vimtex#profile#stop()
" call vimtex#profile#filter([
"       \ 'FUNCTIONS SORTED ON SELF',
"       \ 'FUNCTIONS SORTED ON TOTAL',
"       \ 'FUNCTION  vimtex#fold#level',
"       \])
" call vimtex#profile#print()
" call vimtex#profile#open()

call vimtex#test#finished()
