Update deindenting in css.kak

This commit is contained in:
John Isom 2020-07-28 16:03:15 -06:00
parent 6cf0856a15
commit 8f0b56be1f

View File

@ -72,7 +72,7 @@ define-command -hidden css-indent-on-new-line %[
# indent after lines ending with with { # indent after lines ending with 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 when after cursor # deindent closing brace 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-&> ]
] ]
] ]