Update deindenting in css.kak

This commit is contained in:
John Isom 2020-07-29 09:35:36 -06:00
parent 528feb3422
commit bad751197a

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> <a-/> \} <ret> m <a-S> 1<a-&> ] try %[ execute-keys -draft <a-x> <a-k> ^\h*\} <ret> gh / \} <ret> m <a-S> 1<a-&> ]
] ]
] ]