Fix deindentation in zig.kak
This commit is contained in:
parent
4a49868f2c
commit
6258646f41
|
@ -121,6 +121,8 @@ define-command -hidden zig-indent-on-new-line %<
|
||||||
try %< execute-keys -draft <semicolon> K <a-&> >
|
try %< execute-keys -draft <semicolon> K <a-&> >
|
||||||
# indent after lines ending in {
|
# indent after lines ending in {
|
||||||
try %< execute-keys -draft k <a-x> <a-k> \{\h*$ <ret> j <a-gt> >
|
try %< execute-keys -draft k <a-x> <a-k> \{\h*$ <ret> j <a-gt> >
|
||||||
|
# deindent closing } when after cursor
|
||||||
|
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 : zig-trim-indent <ret> >
|
try %< execute-keys -draft k : zig-trim-indent <ret> >
|
||||||
|
|
Loading…
Reference in New Issue
Block a user