1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-29 14:44:56 +03:00

Update deindenting in d.kak

This commit is contained in:
John Isom 2020-07-29 09:07:02 -06:00
parent b73efbd4e7
commit dc4508d05f

View File

@ -122,7 +122,7 @@ define-command -hidden d-indent-on-new-line %~
# indent after if|else|while|for
try %[ execute-keys -draft <semicolon><a-F>)MB <a-k> \A(if|else|while|for)\h*\(.*\)\h*\n\h*\n?\z <ret> s \A|.\z <ret> 1<a-&>1<a-space><a-gt> ]
# 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*[})]+\h*\;?\h*(?://.*)?$ <ret> \; <a-/> [})] <ret> m <a-S> 1<a-&> ]
=
~