Closed vEnhance closed 4 months ago
Thanks for finding this! Essentially everything in typst-symbols.vim
has been autogenerated. It is all a bit messy and related concealment problems are currently more important, though if you go back a few PRs there is scripts for updating the symbols. If you want to, I'd be happy to accept a PR with updated symbols. Otherwise, it'll probably be some time before I get around doing it myself.
The line https://github.com/kaarmu/typst.vim/blob/86e4fa8dcddd032f9fdbf04602417a8baac8fed3/syntax/typst-symbols.vim#L829 seems problematic to me because it causes, say, $g_1$ to be concealed as
\1
which seems to not be correct.Was this supposed to be something else? Looking at the nearby lines I have the impression that some of these mappings are nonstandard custom ones, or at least I cannot find them in https://typst.app/docs/reference/symbols/sym/. Of course I don't mind that, but it seems like redefining
g_
shouldn't even be possible in math mode.Sorry if I missed something, and thanks much for your work on this plugin which is great!