neoclide / coc-pairs

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

adding unnecessary end bracket in replace mode #72

Closed marconetto closed 3 years ago

marconetto commented 3 years ago

It seems the plugin is adding an unnecessary end bracket in replace mode. Not sure if this the expected behavior.

For instance, let's say I have this content in a file: (aaa and I move the cursor to the opening parenthesis and go to replace mode and type "[", it seems the plugin is adding a close bracket []aa

It seems in replace mode the plugin is not checking that the next char is non-whitespace.

I'm using neovim 0.4.4