neoclide / coc-pairs

Basic auto pairs extension of coc.nvim
297 stars 14 forks source link

Insert close brace on new line if CR is pressed between braces #60

Closed thorlucas closed 4 years ago

thorlucas commented 4 years ago

I'm not entirely sure if I'm just missing something in my config here, but there's no way this is desirable:

braces

(not sure why the gif is playing much slower here than the original video, sorry for that)

I have to exit insert mode and press k and re enter insert mode and tab in every time I create a new function. That's actually less ergonomic than not having braces inserted at all.

chemzqm commented 4 years ago

:h coc#on_enter(), this extension insert pairs only