kdheepak / cmp-latex-symbols

Add latex symbol support for nvim-cmp.
MIT License
134 stars 9 forks source link

Combining Characters #13

Open gleachkr opened 1 month ago

gleachkr commented 1 month ago

Is there a way to use this with combining characters, like the macron, U+0304?

The source in https://milde.users.sourceforge.net/LUCR/Math/data/unimathsymbols.txt suggests that U+0304 ought to correspond to \bar. But expanding something like x\bar seems to just produce x followed by a macron combined with a blank space, like x ̄ rather than a macron combined with x, like (which you ordinarily get by typing x<ctrl-v>u0304).

This is true for all sorts of accent characters that would be neat to be able to type in.

Thanks for this neat plugin!

kdheepak commented 1 month ago

Good question! I'm actually not sure of the answer to this and would have to look into it.