Add wrap-with-angle-bracket function + binding

This commit is contained in:
Jeremy Dormitzer 2022-05-05 14:21:24 -04:00
parent 129c5c5975
commit a67e30d0dd

View File

@ -20,6 +20,9 @@
(defun sp-wrap-single-quote ()
(interactive)
(sp-wrap-with-pair "'"))
(defun sp-wrap-angle-bracket ()
(interactive)
(sp-wrap-with-pair "<"))
(defun sp-after-equals-p (_id action _context)
(when (memq action '(insert navigate))
(sp--looking-back-p "=>" 2)))
@ -66,7 +69,8 @@
"g[" #'sp-wrap-square
"g{" #'sp-wrap-curly
"g\"" #'sp-wrap-double-quote
"g'" #'sp-wrap-single-quote))
"g'" #'sp-wrap-single-quote
"g<" #'sp-wrap-angle-bracket))
(use-package evil-smartparens
:after (evil smartparens)