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 *.vim)
TESTS := $(TESTS:.vim=)
.PHONY: test $(TESTS)
test: $(TESTS)
$(TESTS):
@chronic $(MYVIM) -u $@.vim

View File

@ -0,0 +1,12 @@
\documentclass{minimal}
\begin{document}
Hello World!
\begin{x}
\begin{y}
Hello world.
\end{y}
\end{x}
\end{document}

View File

@ -0,0 +1,22 @@
set nocompatible
set runtimepath^=../..
filetype plugin on
syntax on
nnoremap q :qall!<cr>
silent edit test-getters.tex
normal! 8G
call assert_equal(['y', 'x'], map(vimtex#env#get_all(), 'v:val.name'))
call assert_equal('y', vimtex#env#get_inner().name)
call assert_equal('x', vimtex#env#get_outer().name)
" Simple profiling
" let s:t0 = vimtex#profile#time()
" for s:i in range(100)
" call vimtex#env#get_all()
" endfor
" call vimtex#profile#time(s:t0)
call vimtex#test#finished()

View File

@ -0,0 +1,18 @@
\documentclass{minimal}
\begin{document}
Hello World!
Hello Moon!
\begin{quote}
This is wrongly indented.
Two lines.
\end{quote}
one
two
three
four
\end{document}

View File

@ -0,0 +1,42 @@
set nocompatible
set runtimepath^=../..
filetype plugin indent on
syntax on
set shiftwidth=2
set expandtab
nnoremap q :qall!<cr>
silent edit test-surround.tex
execute "normal 13G\<plug>(vimtex-env-surround-operator)3jnumbers\<cr>"
call assert_equal([
\ '\begin{numbers}',
\ ' one',
\ ' two',
\ ' three',
\ ' four',
\ '\end{numbers}'
\], getline(13, 18))
call vimtex#env#surround(9, 10, 'verbatim')
call assert_equal([
\ '\begin{quote}',
\ ' \begin{verbatim}',
\ ' This is wrongly indented.',
\ ' Two lines.',
\ ' \end{verbatim}',
\ '\end{quote}'
\], getline(8, 13))
call vimtex#env#surround(4, 6, 'test')
call assert_equal([
\ '\begin{test}',
\ ' Hello World!',
\ '',
\ ' Hello Moon!',
\ '\end{test}',
\], getline(4, 8))
call vimtex#test#finished()

View File

@ -0,0 +1,6 @@
\documentclass{minimal}
\begin{document}
Hello World!
\end{document}

View File

@ -0,0 +1,14 @@
set nocompatible
set runtimepath^=../..
filetype plugin on
syntax on
nnoremap q :qall!<cr>
silent edit test-toggle-star.tex
normal! 4G
call vimtex#env#toggle_star()
call assert_equal('\end{document}', getline('$'))
call vimtex#test#finished()