Update deindenting in latex.kak

This commit is contained in:
John Isom 2020-07-28 16:06:02 -06:00
parent 3bd783c337
commit be69d6e173

View File

@ -69,7 +69,7 @@ define-command -hidden latex-indent-newline %(
# indent after line ending with {
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-&> )
try %( execute-keys -draft <a-x> <a-k>^\h*\}+\h*(?:%.*)?$<ret> <a-/> \} <ret> m <a-S> 1<a-&> )
# indent after line ending with \begin{...}[...]{...}, with multiple
# sets of arguments possible
try %(