neoclide / coc-pairs

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

Feature request: Add an empty line when pressing Enter (and the cursor is in between two brackets) #56

Closed hatemets closed 4 years ago

hatemets commented 4 years ago

This is a feature present in VSCode. It enables the user to instantly start typing (without having to create the empty line themselves) after pressing Enter.

Here's an example:

Initial cursor position (pipe represents the cursor): {|}

1) After pressing Enter in insert mode, this happens image

2) The desired effect would be as follows: image

This would be a really useful feature that would benefit especially those who write a lot of CSS.

chemzqm commented 4 years ago

:h coc#on_enter()