auto-pairs icon indicating copy to clipboard operation
auto-pairs copied to clipboard

Unexpected indentation of last bracket

Open ghost opened this issue 3 years ago • 1 comments

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!

ghost avatar Jul 14 '21 14:07 ghost

Get a better indentexpr. https://github.com/LunarWatcher/auto-pairs/issues/26 https://github.com/LunarWatcher/auto-pairs/issues/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.

LunarWatcher avatar Jul 14 '21 17:07 LunarWatcher