Fix indentation rule for css.kak

This commit is contained in:
John Isom 2020-07-27 13:06:24 -06:00
parent b57b474f23
commit 24afe43cf6

View File

@ -71,6 +71,8 @@ define-command -hidden css-indent-on-new-line %[
try %[ execute-keys -draft k : css-trim-indent <ret> ] try %[ execute-keys -draft k : css-trim-indent <ret> ]
# 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
try %[ execute-keys -draft <a-x> <a-k>^\h*\}\h*$<ret> hm <a-S> 1<a-&> ]
] ]
] ]