Concerning indent in vimtex
, it has some settings controlling indenting of delimiters, the option seems to be g:vimtex_indent_delims
. However, I would like to not only indent the text between opening and closing braces, but also the braces themselves, leading to a layout like
\cs_new:Npn \__hook_parse_dot_label:n #1
{
\tl_if_empty:nTF {#1}
{
\msg_expandable_error:nn { hooks } { empty-label }
\__hook_currname_or_default:
}
{
\str_if_eq:nnTF {#1} { . }
{ \__hook_currname_or_default: }
{ \__hook_parse_dot_label:w #1 ./ \s__hook_mark }
}
}
(this is example code taken from the lthooks
package.)
So additional to the usual indenting of the lines in the {...}
block, also the braces themselves should be indented.
From what I can see, there is, however, no such option in g:vimtex_indent_delims
.
How can I achieve such an indent in vimtex
? Is there some other place in the documentation with aprropriate settings you can refer me to?