Merge remote-tracking branch 'krobelus/python-no-indent-after-comment' into master
This commit is contained in:
commit
22676647fe
|
@ -156,7 +156,7 @@ define-command -hidden python-indent-on-new-line %<
|
|||
# cleanup trailing whitespaces from previous 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> }
|
||||
try %{ execute-keys -draft <space> k <a-x> <a-k> :$ <ret> <a-K> ^\h*# <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