Update generated nvim config
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
MYVIM ?= nvim --clean --headless
|
||||
|
||||
INMAKE := 1
|
||||
export INMAKE
|
||||
|
||||
TESTS := $(wildcard test*.vim)
|
||||
|
||||
.PHONY: dummy test $(TESTS)
|
||||
|
||||
test: $(TESTS)
|
||||
|
||||
$(TESTS):
|
||||
@$(MYVIM) -u $@
|
||||
|
||||
|
||||
dummy:
|
||||
@echo Compiling...
|
||||
@echo SillyWalks
|
||||
@echo Compiling...Done!
|
||||
@ -0,0 +1,4 @@
|
||||
\documentclass{minimal}
|
||||
\begin{document}
|
||||
Hello world!
|
||||
\end{document}
|
||||
@ -0,0 +1,32 @@
|
||||
set nocompatible
|
||||
set runtimepath^=../..
|
||||
filetype plugin on
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
let g:test = 0
|
||||
|
||||
function! Callback(msg)
|
||||
if a:msg =~# 'SillyWalk'
|
||||
let g:test = 1
|
||||
endif
|
||||
endfunction
|
||||
|
||||
let g:vimtex_view_automatic = 0
|
||||
let g:vimtex_compiler_method = 'generic'
|
||||
let g:vimtex_compiler_generic = {
|
||||
\ 'command': 'make dummy',
|
||||
\ 'hooks': [function('Callback')],
|
||||
\}
|
||||
|
||||
call vimtex#log#set_silent()
|
||||
|
||||
silent edit test.tex
|
||||
|
||||
if empty($INMAKE) | finish | endif
|
||||
|
||||
call vimtex#compiler#start()
|
||||
call b:vimtex.compiler.wait()
|
||||
call assert_equal(1, g:test)
|
||||
|
||||
call vimtex#test#finished()
|
||||
Reference in New Issue
Block a user