From 24afe43cf6537d364f2e96f377cddc6f98f7e0cf Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 13:06:24 -0600 Subject: [PATCH] Fix indentation rule for css.kak --- rc/filetype/css.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/css.kak b/rc/filetype/css.kak index 8825c84e..62a93192 100644 --- a/rc/filetype/css.kak +++ b/rc/filetype/css.kak @@ -71,6 +71,8 @@ define-command -hidden css-indent-on-new-line %[ try %[ execute-keys -draft k : css-trim-indent ] # indent after lines ending with with { try %[ execute-keys -draft k \{$ j ] + # deindent closing brace when after cursor + try %[ execute-keys -draft ^\h*\}\h*$ hm 1 ] ] ]