Fix deindentation in python.kak

This commit is contained in:
John Isom 2020-07-29 20:31:34 -06:00
parent 14514422db
commit 53188e66c7

View File

@ -157,6 +157,8 @@ define-command -hidden python-indent-on-new-line %{
try %{ execute-keys -draft k <a-x> s \h+$ <ret> d }
# indent after line ending with :
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-&> ]
}
}