Update generated nvim config
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
.PHONY: test
|
||||
|
||||
MYVIM ?= nvim --clean --headless
|
||||
|
||||
test:
|
||||
@INMAKE=1 BACKEND=bibtex $(MYVIM) -u bibspeed.vim
|
||||
@INMAKE=1 BACKEND=vim $(MYVIM) -u bibspeed.vim
|
||||
@INMAKE=1 BACKEND=lua $(MYVIM) -u bibspeed.vim
|
||||
@#INMAKE=1 BACKEND=bibparse $(MYVIM) -u bibspeed.vim
|
||||
@#INMAKE=1 BACKEND=bibtexparser $(MYVIM) -u bibspeed.vim
|
||||
@rm -f nvim_servernames.log
|
||||
@ -0,0 +1,18 @@
|
||||
\documentclass{article}
|
||||
% \usepackage[square,sort,comma,numbers]{natbib}
|
||||
|
||||
\usepackage{biblatex}
|
||||
\addbibresource{../common/huge.bib}
|
||||
\addbibresource{../common/local1.bib}
|
||||
\addbibresource{../common/local2.bib}
|
||||
\addbibresource{biblatex-examples.bib}
|
||||
|
||||
\begin{document}
|
||||
|
||||
Hello World!~\cite{AndersonHowCanHuman2009}
|
||||
|
||||
% \bibliographystyle{elsarticle-num}
|
||||
% \bibliography{../common/huge.bib,../common/local1.bib,../common/local2.bib,biblatex-examples.bib}
|
||||
\printbibliography
|
||||
|
||||
\end{document}
|
||||
@ -0,0 +1,41 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
let g:vimtex_cache_root = '.'
|
||||
let g:vimtex_cache_persistent = 0
|
||||
if !empty($BACKEND)
|
||||
let g:vimtex_parser_bib_backend = $BACKEND
|
||||
endif
|
||||
|
||||
silent edit bibspeed.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
if g:vimtex_parser_bib_backend ==# 'lua' && !has('nvim')
|
||||
call vimtex#test#finished()
|
||||
endif
|
||||
|
||||
normal! 10G
|
||||
|
||||
" execute 'profile start' 'bibspeed-' . g:vimtex_parser_bib_backend . '.log'
|
||||
" profile func *
|
||||
|
||||
let s:time = vimtex#profile#time()
|
||||
silent call vimtex#test#completion('\cite{', '')
|
||||
echo 'Backend:' toupper(g:vimtex_parser_bib_backend)
|
||||
let s:time = vimtex#profile#time(s:time, 'Time elapsed (1st run)')
|
||||
|
||||
" profile pause
|
||||
|
||||
call vimtex#test#completion('\cite{', '')
|
||||
let s:time = vimtex#profile#time(s:time, 'Time elapsed (2nd run)')
|
||||
|
||||
let s:candidates = vimtex#test#completion('\cite{', '')
|
||||
let s:time = vimtex#profile#time(s:time, 'Time elapsed (3rd run)')
|
||||
echo 'Number of candidates:' len(s:candidates)
|
||||
echo "\n"
|
||||
|
||||
quit!
|
||||
Reference in New Issue
Block a user