Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gondalez opened this issue Apr 20, 2023 · 0 comments
Open

Comments

@gondalez
Copy link

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
@gondalez gondalez changed the title Add spacing for block {s (but not for hash {s. Add spacing for block {s (but not for hash {s) Apr 20, 2023
@gondalez gondalez changed the title Add spacing for block {s (but not for hash {s) Add spacing for ruby block {s (but not for hash {s) Apr 20, 2023
@gondalez gondalez changed the title Add spacing for ruby block {s (but not for hash {s) Add spacing for ruby block {s (but not for hash {s) in smartparens-ruby Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant