From b57b474f2321dc8e7a71c36e97fa7e7ab3b0188f Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 12:59:15 -0600 Subject: [PATCH] Fix indentation rule for cabal.kak --- rc/filetype/cabal.kak | 2 ++ 1 file changed, 2 insertions(+) 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 ] ] ]