Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some closing characters indented too far in python #279

Open
apiarian opened this issue Dec 11, 2018 · 2 comments
Open

Some closing characters indented too far in python #279

apiarian opened this issue Dec 11, 2018 · 2 comments

Comments

@apiarian
Copy link

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 .

@s1341
Copy link

s1341 commented Feb 6, 2020

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

@drdilyor
Copy link

drdilyor commented Jul 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants