mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -150,7 +150,14 @@ fundamental-mode) for performance sake."
|
||||
sp-show-pair-delay 0.1
|
||||
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-exit-hook #'turn-on-smartparens-mode)
|
||||
|
||||
|
Reference in New Issue
Block a user