Update deindentation in cue.kak
This commit is contained in:
parent
e43981422e
commit
5284196cb3
|
@ -137,7 +137,7 @@ define-command -hidden cue-indent-on-new-line %~
|
||||||
# indent after lines ending with [{(].+ and move first parameter to own 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-&> >
|
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
|
# 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
|
# filter previous line
|
||||||
try %{ execute-keys -draft k : cue-trim-indent <ret> }
|
try %{ execute-keys -draft k : cue-trim-indent <ret> }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user