Update generated nvim config
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
MYVIM ?= nvim --clean --headless
|
||||
|
||||
INMAKE := 1
|
||||
export INMAKE
|
||||
|
||||
.PHONY: test
|
||||
|
||||
test:
|
||||
@$(MYVIM) -u test.vim
|
||||
@ -0,0 +1,22 @@
|
||||
set nocompatible
|
||||
let &rtp = '../..,' . &rtp
|
||||
let &rtp .= ',../../after'
|
||||
filetype plugin indent on
|
||||
syntax enable
|
||||
|
||||
nnoremap q :qall!<cr>
|
||||
|
||||
let g:vimtex_cache_persistent = 0
|
||||
|
||||
silent edit texwork/example.tex
|
||||
|
||||
let s:candidates = vimtex#test#completion('\gls{', '')
|
||||
call assert_true(len(s:candidates) == 0)
|
||||
|
||||
call vimtex#cache#clear('kpsewhich')
|
||||
call vimtex#cache#clear('parser_tex')
|
||||
let $TEXINPUTS = getcwd() . '/texinclude:'
|
||||
let s:candidates = vimtex#test#completion('\gls{', '')
|
||||
call assert_true(len(s:candidates) > 0)
|
||||
|
||||
call vimtex#test#finished()
|
||||
@ -0,0 +1,9 @@
|
||||
\section{bar}\label{sec:bar}
|
||||
|
||||
\newglossaryentry{g:foo}{%
|
||||
name={foo},
|
||||
plural={foos},
|
||||
description={%
|
||||
very fooish
|
||||
}%
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
\documentclass{article}
|
||||
\usepackage{glossaries}
|
||||
|
||||
\makeglossary
|
||||
\begin{document}
|
||||
|
||||
% gf on 'inp.tex' works fine
|
||||
\input{inp.tex}
|
||||
% \input{../texinclude/inp.tex}
|
||||
|
||||
% completion after type '\ref{' works if aux-file exists
|
||||
\ref{sec:bar}
|
||||
|
||||
% completion after type \gls{' didn't work
|
||||
\gls{g:foo}
|
||||
|
||||
% but completion works if used '\input{../texinclude/inp.tex}
|
||||
|
||||
\printglossaries
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user