neoclide/coc-pairs

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

hatemets opened this issue · 1 comments

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.

:h coc#on_enter()