Disable smartparens pair & tag navigation

Fixes quirky backspace and autoskipping behavior with html tags or
closing delimtiers unpredictably. These might be more useful to non-evil
users, but more testing is required.

Indirectly fixes #712
This commit is contained in:
Henrik Lissner 2018-06-23 23:21:02 +02:00
parent e4b23d78da
commit a52267fee5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -150,7 +150,14 @@ fundamental-mode) for performance sake."
sp-show-pair-delay 0.1 sp-show-pair-delay 0.1
sp-max-pair-length 3) sp-max-pair-length 3)
;; smartparens conflicts with evil-mode's replace state ;; Slim down on smartparens' opinionated behavior
(setq sp-navigate-skip-match nil)
(after! (:or smartparens-crystal smartparens-ruby)
(setq sp-navigate-skip-match nil))
(after! smartparens-html
(setq sp-navigate-consider-sgml-tags nil))
;; smartparenss conflicts with evil-mode's replace state
(add-hook 'evil-replace-state-entry-hook #'turn-off-smartparens-mode) (add-hook 'evil-replace-state-entry-hook #'turn-off-smartparens-mode)
(add-hook 'evil-replace-state-exit-hook #'turn-on-smartparens-mode) (add-hook 'evil-replace-state-exit-hook #'turn-on-smartparens-mode)