Update deindenting in json.kak
This commit is contained in:
parent
dc4508d05f
commit
f84fd84b26
|
@ -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-&> >
|
||||
>
|
||||
>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user