feature/evil: fix inclusivity of evil-matchit #519

This commit is contained in:
Henrik Lissner 2018-04-17 19:39:56 -04:00
parent d387045980
commit b8fd35a855
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 2 deletions

View file

@ -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)))

View file

@ -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."