Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.84k stars 193 forks source link

Add spacing for ruby block `{`s (but not for hash `{`s) in `smartparens-ruby` #1157

Open gondalez opened 1 year ago

gondalez commented 1 year ago

Hi and thanks for the great package :) 🙏

I'm not sure if this is feasible but I figured I'd raise an issue to see what others think, or if there is a more elegant solution. I find myself having to manually space ruby blocks a lot and I'd rather let the computer do it.

Expected behavior

(_ is point)

Type let(:thing) {, get let(:thing) { _ }. Type my_hash = {, get my_hash = {_}

Actual behavior

Type let(:thing) {, get let(:thing) {_} (❌) Type my_hash = {, get my_hash = {_} (✔️)

Environment & version information