From 9dd292d100bf266e391fa9ef3314e2c6a4a447f6 Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 20:52:35 -0600 Subject: [PATCH] Fix indentation rule for json.kak --- rc/filetype/json.kak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc/filetype/json.kak b/rc/filetype/json.kak index d5a0b8c5..58f1e328 100644 --- a/rc/filetype/json.kak +++ b/rc/filetype/json.kak @@ -61,6 +61,8 @@ define-command -hidden json-indent-on-new-line %< try %{ execute-keys -draft k : json-trim-indent } # indent after lines beginning with opener token try %< execute-keys -draft k ^\h*[[{] j > + # deindent opener token(s) when after cursor + try %< execute-keys -draft ^\h*[}\]]+\h*$ hm 1 > > >