The function vimtex#format#formatexpr defined in format.vim script just supports s:border_beginning and s:border_end variables. Is it possible to provide global variables g:vimtex_format_border_beginning and g:vimtex_border_end for user?
For example, when format following codes using gqap:
\begin{figure}[htpb]
\centering
\includegraphics[scale=1.0]{fig1}
\caption{A long title a long title a long title a long title a long title a long title a long title}%
\label{f:fig1}
\end{figure}
``` latex
The result is :
``` latex
\begin{figure}[htpb] \centering \includegraphics[scale=1.0]{fig1}
\caption{A long title a long title a long title a long title a long title a long title a long title}%
\label{f:fig1}
\end{figure}
``` latex
The expected result is:
``` latex
\begin{figure}[htpb]
\centering
\includegraphics[scale=1.0]{fig1}
\caption{A long title a long title a long title a long title a long title
a long title a long title}%
\label{f:fig1}
\end{figure}
Therefore, it is very convenient for user to custom formatting style if you can provide global variables.
Thank you very much!
The function vimtex#format#formatexpr defined in format.vim script just supports
s:border_beginningands:border_endvariables. Is it possible to provide global variablesg:vimtex_format_border_beginningandg:vimtex_border_endfor user?For example, when format following codes using
gqap:Therefore, it is very convenient for user to custom formatting style if you can provide global variables.
Thank you very much!