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
Writing "//tbar" I would expect that // expands to "\frac{|}{}" with the cursor being between the first two brackets and "tbar" expanding to "\bar{t}", resulting in "\frac{\bar{t}}{}".
But what I get is "\frac{}{}\bar{t}", so \bar{t} is placed afterwards. With the VIM extension disabled this does not happen, but as Neovim for VSCode is quite slow (at least for me, for some reason) I don't know of any alternative. Anyone have an idea?
PS: Downgrading to 1.85.2 did not help.
The text was updated successfully, but these errors were encountered:
Edit: After trying out Neovim again and using an init.vim instead of an init.lua, the performance has greatly improved. Maybe I did something wrong before, effecting the performance. Nevertheless, I would still be curious why the above happens!
I am guessing something goes wrong when deleting the trigger, since this doesn't happen for just inserting snippets normally with the command insertsnippet.
So I tried the workaround of issue #189 provided by @superle3, but now I have a new problem.
Say I have two snippets
snippet // "Fraction simple" A
\frac{$1}{$2}$0
endsnippet
snippet
\b([a-zA-Z])bar\b
"bar" Arv = '\\bar{' + m[1] + '}'
$0endsnippet
Writing "//tbar" I would expect that // expands to "\frac{|}{}" with the cursor being between the first two brackets and "tbar" expanding to "\bar{t}", resulting in "\frac{\bar{t}}{}".
But what I get is "\frac{}{}\bar{t}", so \bar{t} is placed afterwards. With the VIM extension disabled this does not happen, but as Neovim for VSCode is quite slow (at least for me, for some reason) I don't know of any alternative. Anyone have an idea?
PS: Downgrading to 1.85.2 did not help.
The text was updated successfully, but these errors were encountered: