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 ] ] ]