feature/evil: fix inclusivity of evil-matchit #519
This commit is contained in:
parent
d387045980
commit
b8fd35a855
2 changed files with 5 additions and 2 deletions
|
@ -307,3 +307,4 @@ more information on modifiers."
|
|||
(regexp-quote (string-trim-left (car match))))
|
||||
path file-name t t 1))))
|
||||
(replace-regexp-in-string regexp "\\1" file-name t)))
|
||||
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue