<BS> in signs that `[ [ ] " " " ' ' ' (() { { }` already have matched will delete both
Closed this issue · 3 comments
NEX-S commented
I find something weird,
in the cases that has been already matched like [ [ ] " " " ' ' ' (() { { }
, we dont want autoclose.nvim to delete both signs for us
for example:
| <------- Cursor
#include "stdio.h"|"
as we can see, "stdio.h"|"
have a pair that already matched ( "stdio.h"|
), if we press <BS>
at |
, it will delete the both sign for us.
In this cases, we might not wish to delete both sign :D
NEX-S commented
Oh, and we might need to check whether the sign has unmatch pair in front of a sentence too.
#include |stdio.h" <------------- this should add only one pair
NEX-S commented
just because i tried implement that feature on my own plugins now :\