mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
feature/evil: fix inclusivity of evil-matchit #519
This commit is contained in:
@@ -264,12 +264,14 @@
|
||||
|
||||
|
||||
(def-package! evil-matchit
|
||||
:commands (evilmi-jump-items evilmi-text-object global-evil-matchit-mode)
|
||||
:commands (evilmi-jump-items global-evil-matchit-mode
|
||||
evilmi-outer-text-object evilmi-inner-text-object)
|
||||
:config (global-evil-matchit-mode 1)
|
||||
:init
|
||||
(map! [remap evil-jump-item] #'evilmi-jump-items
|
||||
:textobj "%" #'evilmi-text-object #'evilmi-text-object)
|
||||
:textobj "%" #'evilmi-inner-text-object #'evilmi-outer-text-object)
|
||||
:config
|
||||
(evil-set-command-properties 'evilmi-jump-items :type 'inclusive :jump t)
|
||||
(defun +evil|simple-matchit ()
|
||||
"A hook to force evil-matchit to favor simple bracket jumping. Helpful when
|
||||
the new algorithm is confusing, like in python or ruby."
|
||||
|
Reference in New Issue
Block a user