diff --git a/rc/filetype/awk.kak b/rc/filetype/awk.kak index 663174b7..13f3dc64 100644 --- a/rc/filetype/awk.kak +++ b/rc/filetype/awk.kak @@ -76,6 +76,8 @@ define-command -hidden awk-indent-on-new-line %[ try %[ execute-keys -draft k s \h+$ d ] # indent after line ending in opening curly brace try %[ execute-keys -draft k \{\h*(#.*)?$ j ] + # deindent closing brace when after cursor + try %[ execute-keys -draft ^\h*\}\h*(?:#.*)?$ hm 1 ] ] ]