Skip to content

Commit

Permalink
Added test files for #1413
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Jun 28, 2019
1 parent 050653e commit c8341a7
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/issues/1413/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
test: | pack/github/start/vimtex
nvim -u init.vim

pack/github/start/vimtex:
mkdir -p pack/github/start
ln -s ~/.vim/bundle/vimtex pack/github/start/vimtex
1 change: 1 addition & 0 deletions test/issues/1413/ftplugin/tex.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setlocal omnifunc=vimtex#complete#omnifunc
19 changes: 19 additions & 0 deletions test/issues/1413/init.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
set nocompatible
set packpath+=.
set runtimepath+=.
filetype plugin indent on
syntax enable

packadd vimtex

nnoremap q :qall!<cr>
let g:tex_flavor = 'latex'

let g:vimtex_view_automatic = 0

if has('nvim')
let g:vimtex_compiler_progname = 'nvr'
endif

edit minimal.tex
5 changes: 5 additions & 0 deletions test/issues/1413/minimal.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
\documentclass{myarticle}
\begin{document}
% type some tex command and complete with CTRL-X CTRL-O
% try :echo b:vimtex
\end{document}

0 comments on commit c8341a7

Please sign in to comment.