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:
parent
e4b23d78da
commit
a52267fee5
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue