kaarmu / typst.vim

Vim plugin for Typst
MIT License
281 stars 24 forks source link

Wrong conceal results #76

Open PhyX-Meow opened 9 months ago

PhyX-Meow commented 9 months ago

Thank you for your work for improvement of performance of conceal feature.

Using current master, $u_theta, cosh(x), ini$ will look like image I expect it to be like u_θ, cosh(x), ini Here ini is some function I defined myself.

kaarmu commented 4 months ago

Sorry for long time with no updates. Check out if there are any obvious conceal errors on branch fix-76. I think I catch most of these now, though perhaps with some performance decrease.

kaarmu commented 4 months ago

Just to put some numbers on the performance decrease. Currently there is a 23% performance decrease with fix-76. Measuring using :syntime before and after for a relatively long document results in ~0.014 s on main branch and ~0.017 s on fix-76. Will try to improve it a bit more before merging.