1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-24 20:13:00 +03:00

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