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,17 @@
MYVIM ?= nvim --clean --headless
INMAKE := 1
export INMAKE
TESTS := $(wildcard *.vim)
TESTS := $(TESTS:.vim=)
.PHONY: test $(TESTS) test-cleanup
test: $(TESTS) test-cleanup
$(TESTS):
@$(MYVIM) -u $@.vim
test-cleanup: $(TESTS)
@rm -f nvim_servernames.log

View File

@ -0,0 +1,8 @@
\documentclass{minimal}
\usepackage{amsmath}
\newenvironment{testnewenvironment}{start}{end}
\begin{document}
\end{document}

View File

@ -0,0 +1,22 @@
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
nnoremap q :qall!<cr>
let g:vimtex_cache_root = '.'
let g:vimtex_cache_persistent = 0
silent edit test1.tex
if empty($INMAKE) | finish | endif
" Candidates from \newenvironment
let s:candidates = vimtex#test#completion('\begin{', 'test')
call assert_equal(s:candidates[0].word, 'testnewenvironment')
" Candidates from package (align from amsmath)
let s:candidates = vimtex#test#completion('\begin{', 'ali')
call assert_equal(s:candidates[0].word, 'align')
call vimtex#test#finished()

View File

@ -0,0 +1,37 @@
% Package info
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{custom}[2020/01/01 v1.0 Custom class]
% Class dependencies
\LoadClass[12pt, a4paper]{report}
\RequirePackage[hyperref]{xcolor}
\RequirePackage[pdfusetitle]{hyperref}
% Graphics
\RequirePackage{graphicx}
% Language
\RequirePackage{polyglossia}
\RequirePackage{csquotes}
\setmainlanguage{english}
% Layout
\RequirePackage[nomarginpar]{geometry}
% Mathematics
\RequirePackage{amssymb, amsmath, amsthm}
\RequirePackage[cmintegrals]{newtxmath}
\newcommand{\true}{\mkern1mu\top\mkern1mu}
\newenvironment{test2Simple}{a}{b}
\newenvironment{test2Boxed}
{\begin{center}
\begin{tabular}{|p{0.9\textwidth}|}
\hline\\
}
{
\\\\\hline
\end{tabular}
\end{center}
}

View File

@ -0,0 +1,6 @@
%! TeX program = lualatex
\documentclass{test2}
\begin{document}
\end{document}

View File

@ -0,0 +1,22 @@
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 test2.tex
if empty($INMAKE) | finish | endif
" Candidates from \newenvironment from custom classes
let s:candidates = vimtex#test#completion('\begin{', 'test2')
call assert_equal(len(s:candidates), 2)
call assert_equal(s:candidates[0].word, 'test2Simple')
call assert_equal(s:candidates[1].word, 'test2Boxed')
call vimtex#test#finished()

View File

@ -0,0 +1,12 @@
\newenvironment{test3Simple}{a}{b}
\newenvironment{test3Boxed}
{\begin{center}
\begin{tabular}{|p{0.9\textwidth}|}
\hline\\
}
{
\\\\\hline
\end{tabular}
\end{center}
}

View File

@ -0,0 +1,6 @@
\documentclass{test3}
\usepackage{test3}
\begin{document}
\end{document}

View File

@ -0,0 +1,22 @@
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 test3.tex
if empty($INMAKE) | finish | endif
" Candidates from \newenvironment from custom classes
let s:candidates = vimtex#test#completion('\begin{', 'test3')
call assert_equal(len(s:candidates), 2)
call assert_equal(s:candidates[0].word, 'test3Simple')
call assert_equal(s:candidates[1].word, 'test3Boxed')
call vimtex#test#finished()