mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-04-21 20:18:48 +08:00
Fixed problem with indent in python file.
After press Retunr in pair have result: dict( ....| ) Issue #295
This commit is contained in:
parent
39f06b873a
commit
a91aaf937e
@ -412,6 +412,9 @@ func! AutoPairsReturn()
|
||||
" coffeescript forbid indent new line
|
||||
if &filetype == 'coffeescript' || &filetype == 'coffee'
|
||||
return "\<ESC>".cmd."k==o"
|
||||
endif
|
||||
if &filetype == 'python'
|
||||
return "\<BS>\<BS>\<ESC>".cmd."O\<BS>"
|
||||
else
|
||||
return "\<ESC>".cmd."=ko"
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user