summaryrefslogtreecommitdiff
path: root/rc/filetype/python.kak
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-09-06 10:48:49 +1000
committerMaxime Coste <mawww@kakoune.org>2020-09-06 10:48:49 +1000
commit22676647fe782f8a26b0ee060f135eec63e9ebfe (patch)
tree0e198670001032a555fde6c8a9bc8cf62d571612 /rc/filetype/python.kak
parent97fd0c05100bde33423568877dbdf0b821c8e87d (diff)
parente1de4aa1180d82100b0b3fda8fbec02605551daa (diff)
Merge remote-tracking branch 'krobelus/python-no-indent-after-comment' into master
Diffstat (limited to 'rc/filetype/python.kak')
-rw-r--r--rc/filetype/python.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak
index 76cf496a..2259cbf5 100644
--- a/rc/filetype/python.kak
+++ b/rc/filetype/python.kak
@@ -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-&> >
>