smartparens
smartparens copied to clipboard
Add spacing for ruby block `{`s (but not for hash `{`s) in `smartparens-ruby`
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
-
smartparens
version: 20230225.1026 - Active
major-mode
:ruby-mode
- Smartparens strict mode: t
- Emacs version (
M-x emacs-version
): GNU Emacs 28.2 (build 1, aarch64-apple-darwin22.3.0, Carbon Version 169 AppKit 2299.4) of 2023-02-07 - Starterkit/Distribution: Spacemacs
- OS: darwin