-
Notifications
You must be signed in to change notification settings - Fork 407
Improve ts$ when changing to display math #2321
Copy link
Copy link
Closed
Labels
Description
To start, I really like the new "ts$" feature, thanks for it!
I believe that it could be improved slightly: I never use $$, \[ and \] for displayed mathematics. So I put
let g:vimtex_env_toggle_math_map = {
\ '$': 'equation',
\ '\[': 'equation',
\ '$$': 'equation',
\ '\(': '$',
\}
into my .vimrc file. This does not work as expected (at least for me) since it does not put \begin{equation} and \end{equation} on new lines (as it does with \[, \] when g:vimtex_env_toggle_math_map contains '$': '\['). A workaround is to keep '$': '\[' there and to do ts$ twice, but it would be nicer not to have to.
Reactions are currently unavailable