You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
snippet refe "Refer Equation" w
(\ref{eq:$1})$0
endsnippet
On typing refe<SnippetTrigger>, one should get:
(\ref{eq:|}) where | denotes the cursor in insert mode. I was hoping that when this happens, automatically, all of the equation labels of the .tex file whose labels start with eq: are displayed in a popup for automatic completion. (Note, this is after ensuring that the .aux file resides in the folder following one compilation as answered here)
However, this does not happen. The automatic triggering happens only if the user manually types in \ref{| individually that the triggering happens.
Is this expected behavior or is there a setting to have automatic completion suggestions triggered even if the cursor is at a placeholder position within a snippet?
Thank you.
The text was updated successfully, but these errors were encountered:
Thanks; this is harder to help with. I believe you may be in more luck asking at either the Ultisnips repo or at MuComplete. I can confirm I have the same "issue" with nvim-cmp (another autocomplete engine) and UltiSnips.
By the way, you probably want \eqref{...} instead of \ref here. You may also be interested in checking out the package cleveref. I strongly recommend it!
I have the following
.vimrc
Consider the following
.tex
file:I have the following snippets via UltiSnips:
On typing
refe<SnippetTrigger>
, one should get:(\ref{eq:|})
where|
denotes the cursor in insert mode. I was hoping that when this happens, automatically, all of the equationlabels
of the.tex
file whose labels start witheq:
are displayed in a popup for automatic completion. (Note, this is after ensuring that the.aux
file resides in the folder following one compilation as answered here)However, this does not happen. The automatic triggering happens only if the user manually types in
\ref{|
individually that the triggering happens.Please see explanatory video/gif of the above at : https://imgur.com/a/3attCKA
Is this expected behavior or is there a setting to have automatic completion suggestions triggered even if the cursor is at a placeholder position within a snippet?
Thank you.
The text was updated successfully, but these errors were encountered: