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
texMathZones = ['texMathZone' + x for x in ['', 'X', 'XX', 'Env', 'EnvStarred', 'Ensured']]
texIgnoreMathZones = ['texMathTextArg']
texMathZoneIds = vim.eval('map('+str(texMathZones)+", 'hlID(v:val)')")
texIgnoreMathZoneIds = vim.eval('map('+str(texIgnoreMathZones)+", 'hlID(v:val)')")
ignore = texIgnoreMathZoneIds[0]
def math():
synstackids = vim.eval("synstack(line('.'), col('.') - (col('.')>=2 ? 1 : 0))")
try:
first = next(i for i in reversed(synstackids) if i in texIgnoreMathZoneIds or i in texMathZoneIds)
return first != ignore
except StopIteration:
return False
mine doesn't work neither.
I'm new to vim and work on Windows. I just put the tex.snippets file under the path AppDate\Local\nvim\plugged\ultisnips\. and i found i can't transfer the snippet, say // or / fraction with <Tab>.
as you can see that here I can't even call a common snippet not requiring context "math()"
snippet // "Fraction" iA
\\frac{$1}{$2}$0
endsnippet
snippet / "Fraction" i
\\frac{${VISUAL}}{$1}$0
endsnippet```
Snippets with "math()" contexts don't work in any math environment.
Math context currently defined as
Nor does it work for me when changed to
As suggested by an issue on vimtex (lervag/vimtex#1870)
The text was updated successfully, but these errors were encountered: