Update deindenting in json.kak

This commit is contained in:
John Isom 2020-07-29 09:27:20 -06:00
parent dc4508d05f
commit f84fd84b26

View File

@ -62,7 +62,7 @@ define-command -hidden json-indent-on-new-line %<
# indent after lines ending with opener token
try %< execute-keys -draft k <a-x> <a-k> [[{]\h*$ <ret> j <a-gt> >
# deindent closer token(s) when after cursor
try %< execute-keys -draft <a-x> <a-k>^\h*[}\]]+\h*$<ret> hm <a-S> 1<a-&> >
try %< execute-keys -draft <a-x> <a-k> ^\h*[}\]]+ <ret> \; gh / [}\]] <ret> m <a-S> 1<a-&> >
>
>