Update generated nvim config
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
.PHONY: test
|
||||
|
||||
MYVIM ?= nvim --clean --headless
|
||||
|
||||
INMAKE := 1
|
||||
export INMAKE
|
||||
|
||||
test:
|
||||
@$(MYVIM) -u test.vim 2>&1
|
||||
@ -0,0 +1 @@
|
||||
% crash if there is \begin in comment
|
||||
@ -0,0 +1,20 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
silent edit test.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
try
|
||||
let s:cmd = vimtex#cmd#get_next()
|
||||
call assert_equal('\begin', s:cmd.name)
|
||||
catch
|
||||
echo 'Failed to parse command!'
|
||||
echo getline('.') "\n"
|
||||
cquit
|
||||
endtry
|
||||
|
||||
call vimtex#test#finished()
|
||||
Reference in New Issue
Block a user