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,9 @@
.PHONY: test
MYVIM ?= nvim --clean --headless
INMAKE := 1
export INMAKE
test:
@$(MYVIM) -u test.vim

View File

@ -0,0 +1,11 @@
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pdfpages}
\usepackage{standalone}
\graphicspath{{./my figures/}}
\begin{document}
\end{document}

View File

@ -0,0 +1,48 @@
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('\input{', '')
call assert_equal(len(s:candidates), 4)
let s:candidates = vimtex#test#completion('\include{', '')
call assert_equal(s:candidates[0].word, 'main')
let s:candidates = vimtex#test#completion('\includeonly{', '')
call assert_equal(len(s:candidates), 4)
let s:candidates = vimtex#test#completion('\subfile{', '')
call assert_equal(len(s:candidates), 2)
let s:candidates = vimtex#test#completion('\subfile{', '')
call assert_equal(s:candidates[1].word, 'tikz_pic.tex')
let s:candidates = vimtex#test#completion('\includegraphics{', '')
call assert_equal(len(s:candidates), 26)
call assert_equal(s:candidates[10].word, 'figures/example1.tikz')
call assert_equal(s:candidates[10].abbr, 'figures/example1.tikz')
let s:candidates = vimtex#test#completion('\includegraphics[scale=0.5]{', '')
call assert_equal(len(s:candidates), 26)
let s:candidates = vimtex#test#completion('\includegraphics[100,100][300,300]{', '')
call assert_equal(len(s:candidates), 26)
let s:candidates = vimtex#test#completion('\includegraphics{', 'new_fig')
call assert_equal(len(s:candidates), 9)
call assert_equal(s:candidates[0].word, 'new_fig1.jpg')
call assert_equal(s:candidates[0].abbr, 'my figures/new_fig1.jpg')
let s:candidates = vimtex#test#completion('\includestandalone{', '')
call assert_equal(len(s:candidates), 2)
let s:candidates = vimtex#test#completion('\includepdf{', '')
call assert_equal(s:candidates[0].word, 'figures/fig12.pdf')
call vimtex#test#finished()

View File

@ -0,0 +1,10 @@
\documentclass{standalone}
\usepackage{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw ((0, 0) node[below left]{\large Reliability} --
(0: 4) node[below right]{\large Acquisition costs} --
(60: 4) node[above]{\large Energy consumption} -- cycle;
\end{tikzpicture}
\end{document}