Update deindentation in cue.kak

This commit is contained in:
John Isom 2020-07-29 17:02:54 -06:00
parent e43981422e
commit 5284196cb3

View File

@ -137,7 +137,7 @@ define-command -hidden cue-indent-on-new-line %~
# indent after lines ending with [{(].+ and move first parameter to own line
try %< execute-keys -draft [c[({],[)}] <ret> <a-k> \A[({][^\n]+\n[^\n]*\n?\z <ret> L i<ret><esc> <gt> <a-S> <a-&> >
# deindent closing brace(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-&> >
|
# filter previous line
try %{ execute-keys -draft k : cue-trim-indent <ret> }