Fix indentation for closing chars in kakrc.kak
This commit is contained in:
parent
d818ff8ac0
commit
d4fee6b197
|
@ -102,6 +102,8 @@ define-command -hidden kak-indent-on-new-line %~
|
||||||
try %{ execute-keys -draft k <a-x> <a-k> \%\w*[^\s\w]$ <ret> j <a-gt> }
|
try %{ execute-keys -draft k <a-x> <a-k> \%\w*[^\s\w]$ <ret> j <a-gt> }
|
||||||
# deindent closing brace when after cursor
|
# deindent closing brace when after cursor
|
||||||
try %_ execute-keys -draft -itersel <a-x> <a-k>^\h*[>)}\]]\h*$<ret> hm <a-S> 1<a-&> _
|
try %_ execute-keys -draft -itersel <a-x> <a-k>^\h*[>)}\]]\h*$<ret> hm <a-S> 1<a-&> _
|
||||||
|
# deindent closing char(s)
|
||||||
|
try %{ execute-keys -draft -itersel <a-x> <a-k>^\h*([^\s\w])\h*$<ret> h <a-?><c-r>1<ret> <a-T>% <a-k>\w*<c-r>1$<ret> <a-S> 1<a-&> }
|
||||||
=
|
=
|
||||||
~
|
~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user