@Article{somekey,
title = {A super awesome paper}
}
With this configuration, I am able to have mucomplete work fine for triggering automatic completion suggestion when \cite{ is typed and the option provided is somekey from the bibliography file.
However, on typing \ref{ in the hope of triggering automatic completion suggestions of equation labels in the .tex file, it fails to work.
Hello,
My vimrc is thus:
I have taken the suggestion for
can_complete.tex
from https://github.com/lervag/vimtex/blob/master/doc/vimtex.txt with respect to having mucomplete interact with VimTex.I have the following content in
bibfile.bib
:With this configuration, I am able to have mucomplete work fine for triggering automatic completion suggestion when
\cite{
is typed and the option provided issomekey
from the bibliography file.However, on typing
\ref{
in the hope of triggering automatic completion suggestions of equation labels in the.tex
file, it fails to work.Please see the animated gif of the .
tex
file : https://imgur.com/a/XOv167iIs it possible to help me figure out why this could be the case?
Thank you.
ETA: In case you would like to replicate at your end, here is the content of the .tex file shown in the animated gif:
Output of
:echo g:vimtex#re#neocomplete
is\v\\%(%(\a*cite|Cite)\a*\*?%(\s*\[[^]]*\]){0,2}\s*\{[^}]*|%(\a*cites|Cites)%(\s*\([^)]*\)){0,2}%(%(\s*\[[^]]*\]){0,2}\s*\{[^}]*\})*%(\s*\[[^]]*\]){0,2}\s*\{[^}]*|bibentry\s*\{[^}]*|%(text|block)cquote\*?%(\s*\[[^]]*\]){0,2}\s*\{[^}]*|%(for|hy)\w*cquote\*?\{[^}]*}%(\s*\[[^]]*\]){0,2}\s*\{[^}]*|defbibentryset\{[^}]*}\{[^}]*|\a*ref%(\s*\{[^}]*|range\s*\{[^,}]*%(}\{)?)|hyperref\s*\[[^]]*|includegraphics\*?%(\s*\[[^]]*\]){0,2}\s*\{[^}]*|%(include%(only)?|input|subfile)\s*\{[^}]*|([cpdr]?(gls|Gls|GLS)|acr|Acr|ACR)\a*\s*\{[^}]*|(ac|Ac|AC)\s*\{[^}]*|includepdf%(\s*\[[^]]*\])?\s*\{[^}]*|includestandalone%(\s*\[[^]]*\])?\s*\{[^}]*|%(usepackage|RequirePackage|PassOptionsToPackage)%(\s*\[[^]]*\])?\s*\{[^}]*|documentclass%(\s*\[[^]]*\])?\s*\{[^}]*|begin%(\s*\[[^]]*\])?\s*\{[^}]*|end%(\s*\[[^]]*\])?\s*\{[^}]*|\a*)