smartparens
smartparens copied to clipboard
sp-delete-pair documentation confusing
The documentation says:
If the point is behind a closing pair or behind an opening pair delete
it as a whole. That is, {}| turns to {|, {| turns to |. Can be
disabled by setting sp-autodelete-closing-pair and
sp-autodelete-opening-pair to nil.
If either of those variables are set to nil, what is the behaviour? Does the cursor get stuck? Does it move past the bracket? Does it also delete the matching bracket? All I can tell from experimenting is that if one or both of these are nil, then {|} turns into |} when backspace is pressed, rather than |.
To be honest, I don't understand it either. There's also no tests for this feature and last it was touched was 2012. I think you can consider it deprecated :man_shrugging:.
Should it not then be simply removed?