Fix indentation rule for cabal.kak

This commit is contained in:
John Isom 2020-07-27 12:59:15 -06:00
parent 0932f3d441
commit b57b474f23

View File

@ -60,6 +60,8 @@ define-command -hidden cabal-indent-on-new-line %[
try %[ execute-keys -draft k : cabal-trim-indent <ret> ]
# indent after lines ending with { or :
try %[ execute-keys -draft <space> k <a-x> <a-k> [:{]$ <ret> j <a-gt> ]
# deindent closing brace when after cursor
try %[ execute-keys -draft <a-x> <a-k>\h*\}\h*(?:--.*)?$<ret> hm <a-S> 1<a-&> ]
]
]