diff --git a/rc/filetype/cabal.kak b/rc/filetype/cabal.kak index 77519954..a5c043e9 100644 --- a/rc/filetype/cabal.kak +++ b/rc/filetype/cabal.kak @@ -60,6 +60,8 @@ define-command -hidden cabal-indent-on-new-line %[ try %[ execute-keys -draft k : cabal-trim-indent ] # indent after lines ending with { or : try %[ execute-keys -draft k [:{]$ j ] + # deindent closing brace when after cursor + try %[ execute-keys -draft \h*\}\h*(?:--.*)?$ hm 1 ] ] ]