delimitMate icon indicating copy to clipboard operation
delimitMate copied to clipboard

Some closing characters indented too far in python

Open apiarian opened this issue 6 years ago • 2 comments

Hitting <CR> at the | :

{|}

results in

{
    |
}

But does not work correctly with parentheses and square brackets:

(|)

results in

(
    |
    )

and

[|]

results in

[
    |
    ]

Is there something special about square brackets and parentheses? Is this some PEP8 hard-coded-ness? The desired results (similar to the curly braces) seem to be approved by PEP8: https://www.python.org/dev/peps/pep-0008/#indentation .

apiarian avatar Dec 11 '18 22:12 apiarian

I too am having this issue, but with all pair types...

s1341 avatar Feb 06 '20 07:02 s1341

this issue is not related to delimitMate, i guess, try adding vim-polyglot plugin, but it can hurt performance (e.g. in .vue files)

see also https://stackoverflow.com/q/67166645/13449712

drdilyor avatar Jul 12 '21 10:07 drdilyor