feat(selectrum): Add +selectrum/search-symbol-at-point
This commit is contained in:
parent
5216ba411f
commit
dfce5ddb17
2 changed files with 8 additions and 1 deletions
|
@ -67,3 +67,8 @@ in the search."
|
|||
If ARG (universal argument), include all files, even hidden or compressed ones."
|
||||
(interactive "P")
|
||||
(+selectrum/project-search arg initial-query default-directory))
|
||||
|
||||
;;;###autoload
|
||||
(defun +selectrum/search-symbol-at-point ()
|
||||
(interactive)
|
||||
(consult-line (thing-at-point 'symbol)))
|
||||
|
|
|
@ -702,7 +702,9 @@
|
|||
:desc "Search other project" "P" #'+default/search-other-project
|
||||
:desc "Jump to mark" "r" #'evil-show-marks
|
||||
:desc "Search buffer" "s" #'+default/search-buffer
|
||||
:desc "Search buffer for thing at point" "S" #'swiper-isearch-thing-at-point
|
||||
:desc "Search buffer for thing at point" "S"
|
||||
(cond ((featurep! :completion ivy) #'swiper-isearch-thing-at-point)
|
||||
((featurep! :completion selectrum) #'+selectrum/search-symbol-at-point))
|
||||
:desc "Dictionary" "t" #'+lookup/dictionary-definition
|
||||
:desc "Thesaurus" "T" #'+lookup/synonyms)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue