mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
feature/evil: fix inclusivity of evil-matchit #519
This commit is contained in:
@ -307,3 +307,4 @@ more information on modifiers."
|
|||||||
(regexp-quote (string-trim-left (car match))))
|
(regexp-quote (string-trim-left (car match))))
|
||||||
path file-name t t 1))))
|
path file-name t t 1))))
|
||||||
(replace-regexp-in-string regexp "\\1" file-name t)))
|
(replace-regexp-in-string regexp "\\1" file-name t)))
|
||||||
|
|
||||||
|
@ -264,12 +264,14 @@
|
|||||||
|
|
||||||
|
|
||||||
(def-package! evil-matchit
|
(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)
|
:config (global-evil-matchit-mode 1)
|
||||||
:init
|
:init
|
||||||
(map! [remap evil-jump-item] #'evilmi-jump-items
|
(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
|
:config
|
||||||
|
(evil-set-command-properties 'evilmi-jump-items :type 'inclusive :jump t)
|
||||||
(defun +evil|simple-matchit ()
|
(defun +evil|simple-matchit ()
|
||||||
"A hook to force evil-matchit to favor simple bracket jumping. Helpful when
|
"A hook to force evil-matchit to favor simple bracket jumping. Helpful when
|
||||||
the new algorithm is confusing, like in python or ruby."
|
the new algorithm is confusing, like in python or ruby."
|
||||||
|
Reference in New Issue
Block a user