Update +lookup/(definition|references) docs
This commit is contained in:
parent
099040c523
commit
65b2d5eb28
1 changed files with 9 additions and 9 deletions
|
@ -125,13 +125,14 @@ properties:
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +lookup/definition (identifier &optional other-window)
|
(defun +lookup/definition (identifier &optional other-window)
|
||||||
"Jump to the definition of the symbol at point.
|
"Jump to the definition of IDENTIFIER (defaults to the symbol at point).
|
||||||
|
|
||||||
|
If OTHER-WINDOW (universal argument), open the result in another window.
|
||||||
|
|
||||||
Each function in `+lookup-definition-functions' is tried until one changes the
|
Each function in `+lookup-definition-functions' is tried until one changes the
|
||||||
point or current buffer.
|
point or current buffer. Falls back to dumb-jump, naive
|
||||||
|
ripgrep/the_silver_searcher text search, then `evil-goto-definition' if
|
||||||
Falls back to dumb-jump, naive ripgrep/the_silver_searcher text search, then
|
evil-mode is active."
|
||||||
`evil-goto-definition' if evil-mode is active."
|
|
||||||
(interactive
|
(interactive
|
||||||
(list (+lookup--symbol-or-region) current-prefix-arg))
|
(list (+lookup--symbol-or-region) current-prefix-arg))
|
||||||
(cond ((null identifier)
|
(cond ((null identifier)
|
||||||
|
@ -171,12 +172,11 @@ Falls back to dumb-jump, naive ripgrep/the_silver_searcher text search, then
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +lookup/references (identifier)
|
(defun +lookup/references (identifier)
|
||||||
"Show a list of references to the symbol at point.
|
"Show a list of usages of IDENTIFIER (defaults to the symbol at point)
|
||||||
|
|
||||||
Tries each function in `+lookup-references-functions' until one changes the
|
Tries each function in `+lookup-references-functions' until one changes the
|
||||||
point and/or current buffer.
|
point and/or current buffer. Falls back to a naive ripgrep/the_silver_searcher
|
||||||
|
search otherwise."
|
||||||
Falls back to a naive ripgrep/the_silver_searcher search otherwise."
|
|
||||||
(interactive
|
(interactive
|
||||||
(list (+lookup--symbol-or-region)))
|
(list (+lookup--symbol-or-region)))
|
||||||
(cond ((and +lookup-references-functions
|
(cond ((and +lookup-references-functions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue