Add custom evil lookup function
This commit is contained in:
parent
d54241bbbe
commit
ae26a51ec4
@ -10,7 +10,16 @@
|
||||
(evil-define-key 'motion 'global
|
||||
"j" #'evil-next-visual-line
|
||||
"k" #'evil-previous-visual-line)
|
||||
(defun my-evil-lookup-func ()
|
||||
"Context-aware `evil-lookup-func'"
|
||||
(cond
|
||||
((and (eq major-mode 'emacs-lisp-mode)
|
||||
(thing-at-point 'symbol))
|
||||
(helpful-symbol (intern (thing-at-point 'symbol))))
|
||||
((eldoc--supported-p) (eldoc t))
|
||||
((thing-at-point 'word) (consult-man (thing-at-point 'word t)))))
|
||||
:custom
|
||||
(evil-lookup-func #'my-evil-lookup-func)
|
||||
(evil-undo-system 'undo-fu)
|
||||
(evil-split-window-below t)
|
||||
(evil-vsplit-window-right t))
|
||||
|
Loading…
Reference in New Issue
Block a user