1

Update generated nvim config

This commit is contained in:
2024-06-05 22:05:42 +02:00
parent 859ee3a2ba
commit 075fe5f587
1292 changed files with 152601 additions and 0 deletions

View File

@ -0,0 +1,14 @@
MYVIM ?= nvim --clean --headless
INMAKE := 1
export INMAKE
TESTS := $(wildcard test*.vim)
TESTS := $(TESTS:.vim=)
.PHONY: test $(TESTS)
test: $(TESTS)
$(TESTS):
@$(MYVIM) -u $@.vim

View File

@ -0,0 +1,34 @@
@book{Hemingway1940,
author = {Earnest Hemingway},
title = {For Whom the Bell Tolls},
date = {1940},
date-added = {2021-06-17},
publisher = {Simon \& Schuster},
}
@book{JiM2020,
author = {{Justice in Mexico}},
title = {Organized Crime and Violence in Mexico: 2020 Special Report},
date = {2019-07},
publisher = {Justice in Mexico},
}
@article{0801.1144,
author = {John Kitchin and Karsten Reuter and Matthias Scheffler},
doi = {10.1103/PhysRevB.77.075437},
eprint = {arXiv:0801.1144},
title = {Alloy surface segregation in reactive environments:
A first-principles atomistic thermodynamics study of Ag3Pd(111) in
oxygen atmospheres},
year = {2008}
}
@misc{wilcox.e:2021,
archiveprefix = {arXiv},
author = {Ethan Gotlieb Wilcox and Pranali Vani and Roger P. Levy},
eprint = {2106.03232},
primaryclass = {cs.CL},
title = {A Targeted Assessment of Incremental Processing in Neural
Language Models and Humans},
year = {2021}
}

View File

@ -0,0 +1,16 @@
\documentclass{article}
\usepackage{biblatex}
\addbibresource{test-cites.bib}
\begin{document}
\begin{enumerate}
\item \autocite[10]{Hemingway1940}
\item \autocites{Hemingway1940}{JiM2020}
\item \autocites[10]{JiM2020}[20]{Hemingway1940}
\item \autocites[10]{Hemingway1940}{JiM2020}
\item \autocites{Hemingway1940}[20]{JiM2020}
\end{enumerate}
arXiv tests: \textcite{0801.1144} and \textcite{wilcox.e:2021}
\end{document}

View File

@ -0,0 +1,29 @@
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin indent on
syntax enable
set nomore
nnoremap q :qall!<cr>
silent edit test-cites.tex
if empty($INMAKE) | finish | endif
" Check validity of a single entry
let s:handler = vimtex#context#get(9, 49).handler
call assert_equal('Hemingway1940', s:handler.selected)
let s:actions = s:handler.get_actions()
call assert_equal(9, len(s:actions.entry))
" Check that we get the right key of another entry at a "difficult" spot
call assert_equal('JiM2020', vimtex#context#get(11, 39).handler.selected)
" Check that arxiv handler is available
call assert_equal('Open arXiv',
\ vimtex#context#get(14, 14).handler.get_actions().menu[3].name)
call assert_equal('Open arXiv',
\ vimtex#context#get(14, 39).handler.get_actions().menu[2].name)
call vimtex#test#finished()