Ensure evil-easymotion is lazy-loaded
The evilem-create calls were pulling it in early, at startup.
This commit is contained in:
parent
e5602c1802
commit
dcb0b6042e
2 changed files with 15 additions and 8 deletions
|
@ -97,7 +97,7 @@ the only window, use evil-window-move-* (e.g. `evil-window-move-far-left')."
|
|||
"Invoke and lazy-load `evil-easymotion' without compromising which-key
|
||||
integration."
|
||||
(interactive)
|
||||
(evilem-default-keybindings "<easymotion>")
|
||||
(require 'evil-easymotion)
|
||||
(setq prefix-arg current-prefix-arg)
|
||||
(push '(t . easymotion) unread-command-events))
|
||||
|
||||
|
|
|
@ -210,6 +210,7 @@ directives. By default, this only recognizes C directives.")
|
|||
(use-package! evil-easymotion
|
||||
:commands evilem-create evilem-default-keybindings
|
||||
:config
|
||||
(evilem-default-keybindings "<easymotion>")
|
||||
;; Use evil-search backend, instead of isearch
|
||||
(evilem-make-motion evilem-motion-search-next #'evil-ex-search-next
|
||||
:bind ((evil-ex-search-highlight-all nil)))
|
||||
|
@ -557,12 +558,18 @@ To change these keys see `+evil-repeat-keys'."
|
|||
:textobj "x" #'evil-inner-xml-attr #'evil-outer-xml-attr
|
||||
|
||||
;; evil-easymotion
|
||||
(:after evil-easymotion
|
||||
(:prefix "<easymotion>" ; see `+evil/easymotion'
|
||||
"a" (evilem-create #'evil-forward-arg)
|
||||
"A" (evilem-create #'evil-backward-arg)
|
||||
"s" #'evil-avy-goto-char-2
|
||||
"w" (evilem-create #'evil-snipe-repeat
|
||||
:pre-hook (save-excursion (call-interactively #'evil-snipe-f))
|
||||
:bind ((evil-snipe-scope 'visible)
|
||||
(evil-snipe-enable-highlight)
|
||||
(evil-snipe-enable-incremental-highlight)))
|
||||
"SPC" (λ!! #'evil-avy-goto-char-timer t)
|
||||
"/" #'evil-avy-goto-char-timer)
|
||||
"/" #'evil-avy-goto-char-timer))
|
||||
|
||||
;; evil-snipe
|
||||
(:after evil-snipe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue