fix(text-editing/smartparens): disable navigate action on {} pair

This commit is contained in:
2024-05-26 23:50:34 +01:00
parent 97ff56053a
commit 2dfc86b610

View File

@@ -55,6 +55,12 @@
;; smart pairing for all
(require 'smartparens-config)
;; Re-define {} pair to remove the navigate action. This allows for manually
;; inserting a } character, otherwise it would always jump to the next
;; existing } character, preventing you from manually inserting one where you
;; want.
(sp-pair "{" "}" :actions '(wrap insert autoskip))
(defun sp-transpose-sexp-reverse ()
(interactive)
(sp-transpose-sexp -1))