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.82k stars 195 forks source link

Ruby curly brackets not working #1119

Closed the-moriarty closed 2 years ago

the-moriarty commented 2 years ago

Explain of issue: https://github.com/hlissner/doom-emacs/issues/5931

Fuco1 commented 2 years ago

This is not a smartparens feature. Something configures this behaviour in doom emacs for () and [] but not for {}. You can add it manually for your config if you want:

(sp-local-pair 'ruby-mode "{" nil :post-handlers '(("||\n[i]" "RET")))