Fix indentation rule for latex.kak

This commit is contained in:
John Isom 2020-07-27 21:43:07 -06:00
parent b40a53d26c
commit 1d68f8dab9

View File

@ -68,6 +68,8 @@ define-command -hidden latex-indent-newline %(
try %{ execute-keys -draft k<a-x> s\h+$<ret> d } try %{ execute-keys -draft k<a-x> s\h+$<ret> d }
# indent after line ending with { # indent after line ending with {
try %( execute-keys -draft k<a-x> <a-k>\{$<ret> j<a-gt> ) try %( execute-keys -draft k<a-x> <a-k>\{$<ret> j<a-gt> )
# deindent closing brace(s) when after cursor
try %( execute-keys -draft <a-x> <a-k>^\h*\}+\h*$<ret> hm <a-S> 1<a-&> )
# indent after line ending with \begin{...}[...]{...}, with multiple # indent after line ending with \begin{...}[...]{...}, with multiple
# sets of arguments possible # sets of arguments possible
try %( try %(