Minor refactor & revision across the board
This commit is contained in:
parent
fd8f8c5108
commit
0cf9d1f2f2
7 changed files with 19 additions and 19 deletions
|
@ -141,9 +141,9 @@ point or current buffer. Falls back to dumb-jump, naive
|
|||
ripgrep/the_silver_searcher text search, then `evil-goto-definition' if
|
||||
evil-mode is active."
|
||||
(interactive
|
||||
(list (+lookup--symbol-or-region) current-prefix-arg))
|
||||
(cond ((null identifier)
|
||||
(user-error "Nothing under point"))
|
||||
(list (+lookup--symbol-or-region)
|
||||
current-prefix-arg))
|
||||
(cond ((null identifier) (user-error "Nothing under point"))
|
||||
|
||||
((and +lookup-definition-functions
|
||||
(+lookup--jump-to :definition identifier)))
|
||||
|
@ -187,7 +187,9 @@ point and/or current buffer. Falls back to a naive ripgrep/the_silver_searcher
|
|||
search otherwise."
|
||||
(interactive
|
||||
(list (+lookup--symbol-or-region)))
|
||||
(cond ((and +lookup-references-functions
|
||||
(cond ((null identifier) (user-error "Nothing under point"))
|
||||
|
||||
((and +lookup-references-functions
|
||||
(+lookup--jump-to :references identifier)))
|
||||
|
||||
((+lookup--file-search identifier))
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; feature/lookup/packages.el
|
||||
|
||||
;; `dumb-jump' uses the `helm-build-sync-source' macro, but this requires helm be
|
||||
;; loaded before it is byte-compiled during installation. To ensure this, we
|
||||
;; `dumb-jump' uses the `helm-build-sync-source' macro, but this requires helm
|
||||
;; be loaded before it is byte-compiled during installation. To ensure this, we
|
||||
;; declare helm before dumb-jump.
|
||||
(when (featurep! :completion helm)
|
||||
(depends-on! :completion helm))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue