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

Not inserting new indented line on return

Open ghost opened this issue 7 years ago • 6 comments

public function create()
{|}

When pressing return shown here by the cursor | instead of it being indented on a new line I end up like this.

public function create()
{
|}

ghost avatar Mar 12 '19 19:03 ghost

I'm having the exact same issue as well

ahan98 avatar Mar 22 '19 14:03 ahan98

I do not have this issue. Did you try it with a minimal vimrc? Are you using nvim or vim? Which version?

astier avatar May 16 '19 09:05 astier

I am also having the same issue. For me, it works well (as expected) for some time, then this issue arises.

nachiketkanore avatar Jul 10 '21 07:07 nachiketkanore

verbose inoremap <CR> - There's probably a plugin conflict

LunarWatcher avatar Jul 10 '21 08:07 LunarWatcher

Having the same issue as well. It doesn't work after I use lsp. But it worked fine with coc.

Near99 avatar Jul 19 '21 17:07 Near99

I really can't help you lot if you don't create MCVEs. If it all traces back to an LSP client of some type, it's probably a <CR> remap. Compatibility is attempted from auto-pairs' side, but if you override it somehow, there's auto-pairs can do to override your decision to use <CR> for auto-complete. Again; verbose inoremap <CR>

LunarWatcher avatar Jul 19 '21 18:07 LunarWatcher