Fix deindentation in python.kak
This commit is contained in:
parent
14514422db
commit
53188e66c7
|
@ -157,6 +157,8 @@ define-command -hidden python-indent-on-new-line %{
|
||||||
try %{ execute-keys -draft k <a-x> s \h+$ <ret> d }
|
try %{ execute-keys -draft k <a-x> s \h+$ <ret> d }
|
||||||
# indent after line ending with :
|
# indent after line ending with :
|
||||||
try %{ execute-keys -draft <space> k <a-x> <a-k> :$ <ret> j <a-gt> }
|
try %{ execute-keys -draft <space> k <a-x> <a-k> :$ <ret> j <a-gt> }
|
||||||
|
# deindent closing brace/bracket when after cursor (for arrays and dictionaries)
|
||||||
|
try %[ execute-keys -draft <a-x> <a-k> ^\h*[}\]] <ret> gh / [}\]] <ret> m <a-S> 1<a-&> ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user