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

Unexpected indentation of last bracket #329

Open
ghost opened this issue Jul 14, 2021 · 1 comment
Open

Unexpected indentation of last bracket #329

ghost opened this issue Jul 14, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 14, 2021

Plugin functioning correctly, though hitting enter after typing a bracket seems to indent strangely. I would like something like this:

before: ()
after: (
    |
)

...but Currently I have this:

before: ()
after: (
    |
    )

Details:

Installation: vim-plug
Language: C
Operating System: unix
Vim: NVIM v0.4.3

Thanks!

@LunarWatcher
Copy link

Get a better indentexpr. LunarWatcher/auto-pairs#26 LunarWatcher/auto-pairs#27

in this case, though, because you're using C, you need to modify cino appropriately. Auto-pairs is just exploiting various indent expressions to mimic this behavior - and there's no way around that aside configuring your stuff properly.

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

1 participant