Add wrap-with-angle-bracket function + binding
This commit is contained in:
parent
129c5c5975
commit
a67e30d0dd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user