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
I use UltiSnips in conjunction with mucomplete and VimTeX for autocompletion in .tex files. What I would like to have is automatically triggering of completion suggestions based on context of a snippet placeholder's cursor position. An example follows:
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.
PS: The official response from VimTeX seems to be that it is not possible from within VimTeX to trigger such snippet placeholder contextual completion. See here. I am unsure if it is possible via UltiSnips or mucomplete. I have raised a request for assistance from mucomplete folks as well. See here
The text was updated successfully, but these errors were encountered:
I use
UltiSnips
in conjunction withmucomplete
andVimTeX
for autocompletion in.tex
files. What I would like to have is automatically triggering of completion suggestions based on context of a snippet placeholder's cursor position. An example follows: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.
PS: The official response from VimTeX seems to be that it is not possible from within VimTeX to trigger such snippet placeholder contextual completion. See here. I am unsure if it is possible via
UltiSnips
ormucomplete
. I have raised a request for assistance frommucomplete
folks as well. See hereThe text was updated successfully, but these errors were encountered: